Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001324/0.001324, allocations: 185.3 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 225.7 MB / 253.3 MB, free: 12.87 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 47.92 kB / 371.2 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2327/0.2341, allocations: 52.2 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003541/0.2376, allocations: 2.061 MB / 425.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009262/0.2386, allocations: 0.5105 MB / 425.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.133e-05/0.2387, allocations: 3.938 kB / 425.9 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.2388, allocations: 23.78 kB / 426 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.014e-05/0.2389, allocations: 43.64 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.2391, allocations: 43.88 kB / 426.1 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001961/0.2393, allocations: 155.2 kB / 426.2 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001433/0.2394, allocations: 41.61 kB / 426.2 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.2395, allocations: 75.7 kB / 426.3 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/0.2396, allocations: 59.7 kB / 426.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.563e-05/0.2397, allocations: 16 kB / 426.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.092e-05/0.2397, allocations: 16 kB / 426.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.114e-05/0.2397, allocations: 23.92 kB / 426.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.565e-05/0.2398, allocations: 63.73 kB / 426.5 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002269/0.24, allocations: 171.3 kB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.2401, allocations: 0 / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2401, allocations: 0 / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.2401, allocations: 3.938 kB / 426.7 MB, free: 11.09 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005934/0.2407, allocations: 369.1 kB / 427 MB, free: 10.7 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.2407, allocations: 12.03 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.392e-05/0.2407, allocations: 4.422 kB / 427 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.45e-05/0.2407, allocations: 46.73 kB / 427.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.561e-05/0.2408, allocations: 20.84 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.2411, allocations: 146.3 kB / 427.2 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.2411, allocations: 12.55 kB / 427.3 MB, free: 10.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.548e-05/0.2411, allocations: 16.36 kB / 427.3 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000266/0.2414, allocations: 146.3 kB / 427.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.386e-06/0.2414, allocations: 0 / 427.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.2414, allocations: 4 kB / 427.4 MB, free: 10.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2414, allocations: 4 kB / 427.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001763/0.2416, allocations: 76.66 kB / 427.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007835/0.2424, allocations: 482.1 kB / 428 MB, free: 9.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002865/0.2427, allocations: 78.62 kB / 428 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.798e-05/0.2427, allocations: 32.97 kB / 428.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.544e-05/0.2428, allocations: 0 / 428.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.839e-05/0.2428, allocations: 38.56 kB / 428.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 8.02e-07/0.2428, allocations: 0 / 428.1 MB, free: 9.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006603/0.2434, allocations: 178.3 kB / 428.3 MB, free: 9.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/0.2435, allocations: 51.41 kB / 428.3 MB, free: 9.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.2436, allocations: 145.8 kB / 428.5 MB, free: 9.086 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.846e-05/0.2436, allocations: 29.7 kB / 428.5 MB, free: 9.051 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.104e-05/0.2437, allocations: 124.1 kB / 428.6 MB, free: 8.922 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.2438, allocations: 27.78 kB / 428.7 MB, free: 8.895 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.691e-05/0.2438, allocations: 25.66 kB / 428.7 MB, free: 8.863 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.2439, allocations: 318.8 kB / 429 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.38e-05/0.244, allocations: 23.98 kB / 429 MB, free: 8.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.713e-05/0.2441, allocations: 46.5 kB / 429.1 MB, free: 8.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.2442, allocations: 78.47 kB / 429.1 MB, free: 8.379 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.2442, allocations: 4 kB / 429.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002825/0.2445, allocations: 130.3 kB / 429.3 MB, free: 8.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2445, allocations: 4 kB / 429.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.2445, allocations: 0 / 429.3 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001767/0.2447, allocations: 40.83 kB / 429.3 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.585e-05/0.2448, allocations: 15.92 kB / 429.3 MB, free: 8.176 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001553/0.2463, allocations: 1.571 MB / 430.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.068e-05/0.2464, allocations: 11.92 kB / 430.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.2464, allocations: 7.938 kB / 430.9 MB, free: 6.473 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 9.909e-05/0.2465, allocations: 117.8 kB / 431 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.428e-05/0.2465, allocations: 15.95 kB / 431.1 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.114e-05/0.2466, allocations: 16.72 kB / 431.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.2466, allocations: 0 / 431.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.22e-07/0.2466, allocations: 0 / 431.1 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2466, allocations: 3.984 kB / 431.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002133/0.2468, allocations: 180.6 kB / 431.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.2468, allocations: 0 / 431.3 MB, free: 6.098 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.715e-05/0.2468, allocations: 4 kB / 431.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001218/0.2469, allocations: 32.83 kB / 431.3 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.2469, allocations: 4 kB / 431.3 MB, free: 6.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.2483, allocations: 1.579 MB / 432.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2483, allocations: 0 / 432.9 MB, free: 4.355 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003185/0.2487, allocations: 212.2 kB / 433.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.812e-05/0.2487, allocations: 11.91 kB / 433.1 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.2487, allocations: 4 kB / 433.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.986e-05/0.2488, allocations: 12.05 kB / 433.1 MB, free: 4.102 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.2488, allocations: 11.92 kB / 433.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.2488, allocations: 0 / 433.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.415e-05/0.2489, allocations: 113.7 kB / 433.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2489, allocations: 0 / 433.2 MB, free: 3.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003417/0.2493, allocations: 31.94 kB / 433.3 MB, free: 3.949 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005919/0.2499, allocations: 0.7599 MB / 434 MB, free: 3.16 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003784/0.2502, allocations: 186.6 kB / 434.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2502, allocations: 0 / 434.2 MB, free: 2.965 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002152/0.2505, allocations: 158.6 kB / 434.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.2507, allocations: 11.98 kB / 434.4 MB, free: 2.785 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.2528, allocations: 1.699 MB / 436.1 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.2529, allocations: 98.27 kB / 436.2 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.891e-05/0.2529, allocations: 8.469 kB / 436.2 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.891e-05/0.253, allocations: 31.42 kB / 436.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.253, allocations: 0 / 436.2 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02674/0.2797, allocations: 3.141 MB / 439.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.52, allocations: 11.44 kB / 439.4 MB, free: 13.84 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.942171280039474]