Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001763/0.001763, allocations: 109.1 kB / 21.22 MB, free: 0.7344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00223/0.00223, allocations: 210.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.426/1.426, allocations: 230.5 MB / 258.2 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 63.84 kB / 378.6 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2503, allocations: 53.4 MB / 432 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003861/0.2542, allocations: 2.182 MB / 434.2 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001287/0.2555, allocations: 0.6234 MB / 434.8 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001017/0.2556, allocations: 3.938 kB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001341/0.2557, allocations: 23.78 kB / 434.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.2558, allocations: 43.62 kB / 434.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.2561, allocations: 47.88 kB / 434.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002426/0.2564, allocations: 163.2 kB / 435.1 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001789/0.2565, allocations: 49.64 kB / 435.1 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001769/0.2567, allocations: 63.73 kB / 435.2 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001369/0.2568, allocations: 71.67 kB / 435.2 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.504e-05/0.2569, allocations: 15.94 kB / 435.2 MB, free: 3.355 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.321e-05/0.257, allocations: 28 kB / 435.3 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.238e-05/0.257, allocations: 23.86 kB / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.293e-05/0.2571, allocations: 71.67 kB / 435.4 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002951/0.2574, allocations: 172.1 kB / 435.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2574, allocations: 0 / 435.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2574, allocations: 0 / 435.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2574, allocations: 4 kB / 435.5 MB, free: 3.066 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.0006601/0.258, allocations: 369.9 kB / 435.9 MB, free: 2.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.2581, allocations: 8.031 kB / 435.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.302e-05/0.2581, allocations: 8.422 kB / 435.9 MB, free: 2.656 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.521e-05/0.2582, allocations: 42.73 kB / 436 MB, free: 2.605 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.2583, allocations: 32.83 kB / 436 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000294/0.2586, allocations: 154.3 kB / 436.1 MB, free: 2.398 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.416e-05/0.2586, allocations: 8.609 kB / 436.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.068e-05/0.2587, allocations: 12.38 kB / 436.2 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002597/0.2589, allocations: 131.4 kB / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.2589, allocations: 0 / 436.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.786e-05/0.259, allocations: 4 kB / 436.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.259, allocations: 4 kB / 436.3 MB, free: 2.238 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001796/0.2591, allocations: 72.67 kB / 436.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009885/0.2601, allocations: 0.5695 MB / 436.9 MB, free: 1.523 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2604, allocations: 86.55 kB / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.583e-05/0.2605, allocations: 24.98 kB / 437 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.574e-05/0.2605, allocations: 8 kB / 437.1 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.2605, allocations: 38.48 kB / 437.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.2605, allocations: 0 / 437.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006773/0.2612, allocations: 178.3 kB / 437.3 MB, free: 1.164 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.84e-05/0.2613, allocations: 51.41 kB / 437.3 MB, free: 1.102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001479/0.2614, allocations: 161 kB / 437.5 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.2614, allocations: 25.7 kB / 437.5 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.485e-05/0.2615, allocations: 124.2 kB / 437.6 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.096e-05/0.2615, allocations: 19.8 kB / 437.6 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/0.2616, allocations: 25.7 kB / 437.7 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.2617, allocations: 326.8 kB / 438 MB, free: 412 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.335e-05/0.2618, allocations: 20 kB / 438 MB, free: 392 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.058e-05/0.2619, allocations: 50.44 kB / 438.1 MB, free: 332 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.262, allocations: 74.53 kB / 438.1 MB, free: 248 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.262, allocations: 0 / 438.1 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003648/0.2624, allocations: 142.2 kB / 438.3 MB, free: 96 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.2624, allocations: 4 kB / 438.3 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.2624, allocations: 0 / 438.3 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001841/0.2626, allocations: 40.83 kB / 438.3 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-05/0.2626, allocations: 8.062 kB / 438.3 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001863/0.2645, allocations: 1.584 MB / 439.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.889e-05/0.2646, allocations: 11.98 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.2646, allocations: 7.984 kB / 439.9 MB, free: 14.32 MB / 350.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 0.0001155/0.2647, allocations: 125.7 kB / 440 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.407e-05/0.2647, allocations: 11.95 kB / 440.1 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.908e-05/0.2648, allocations: 12.78 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-06/0.2648, allocations: 0 / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.2648, allocations: 0 / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2648, allocations: 4 kB / 440.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002425/0.265, allocations: 184.6 kB / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.265, allocations: 0 / 440.3 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.681e-05/0.265, allocations: 7.984 kB / 440.3 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001193/0.2652, allocations: 32.84 kB / 440.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.2652, allocations: 0 / 440.3 MB, free: 13.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00142/0.2666, allocations: 1.582 MB / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.2666, allocations: 32 / 441.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003189/0.2669, allocations: 220.2 kB / 442.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.595e-05/0.2669, allocations: 7.891 kB / 442.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.2669, allocations: 4 kB / 442.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.452e-05/0.267, allocations: 8.062 kB / 442.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.2671, allocations: 7.984 kB / 442.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.065e-05/0.2671, allocations: 7.938 kB / 442.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001002/0.2672, allocations: 110.2 kB / 442.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2672, allocations: 0 / 442.2 MB, free: 11.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003462/0.2675, allocations: 43.89 kB / 442.3 MB, free: 11.78 MB / 350.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.000697/0.2682, allocations: 0.7522 MB / 443 MB, free: 11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003819/0.2686, allocations: 182.7 kB / 443.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2686, allocations: 128 / 443.2 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002315/0.2688, allocations: 162.6 kB / 443.4 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.2691, allocations: 8.312 kB / 443.4 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.2712, allocations: 1.732 MB / 445.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004978/0.2717, allocations: 0.7119 MB / 445.8 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.76e-05/0.2717, allocations: 8.375 kB / 445.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.337e-05/0.2718, allocations: 35.42 kB / 445.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2718, allocations: 0 / 445.9 MB, free: 8.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02613/0.2979, allocations: 3.183 MB / 449 MB, free: 4.957 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.7, allocations: 13.3 kB / 449.1 MB, free: 4.945 MB / 350.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 15.277773072011769]