Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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: 108.6 kB / 21.22 MB, free: 0.75 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.001263/0.001263, allocations: 195.7 kB / 24.5 MB, free: 4.008 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.363/1.363, allocations: 225.6 MB / 253.3 MB, free: 13.06 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.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 47.92 kB / 371.2 MB, free: 9.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2339/0.2354, allocations: 52.19 MB / 423.4 MB, free: 14.65 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004139/0.2395, allocations: 3.029 MB / 426.5 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.2407, allocations: 0.6856 MB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000131/0.2408, allocations: 15.94 kB / 427.2 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001569/0.2409, allocations: 47.5 kB / 427.2 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001657/0.2411, allocations: 99.06 kB / 427.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.2413, allocations: 87.88 kB / 427.4 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000421/0.2418, allocations: 418.1 kB / 427.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001764/0.2419, allocations: 79.58 kB / 427.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002043/0.2421, allocations: 159.4 kB / 428 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002013/0.2424, allocations: 163.3 kB / 428.2 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.093e-05/0.2424, allocations: 32 kB / 428.2 MB, free: 9.828 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.079e-05/0.2425, allocations: 32 kB / 428.2 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.005e-05/0.2425, allocations: 71.75 kB / 428.3 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.2427, allocations: 179.1 kB / 428.5 MB, free: 9.551 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004045/0.2431, allocations: 391.2 kB / 428.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2431, allocations: 0 / 428.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2431, allocations: 0 / 428.9 MB, free: 9.172 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.2431, allocations: 4 kB / 428.9 MB, free: 9.168 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0009574/0.2441, allocations: 0.5598 MB / 429.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.2441, allocations: 12.03 kB / 429.5 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.103e-05/0.2441, allocations: 8.844 kB / 429.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.583e-05/0.2442, allocations: 66.72 kB / 429.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.742e-05/0.2442, allocations: 40.7 kB / 429.6 MB, free: 8.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003596/0.2446, allocations: 221.8 kB / 429.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.2446, allocations: 25.03 kB / 429.8 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.699e-05/0.2447, allocations: 24.38 kB / 429.8 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.2452, allocations: 262 kB / 430.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.02e-05/0.2452, allocations: 0 / 430.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.874e-05/0.2452, allocations: 12 kB / 430.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2452, allocations: 8 kB / 430.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000483/0.2457, allocations: 222.4 kB / 430.3 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001616/0.2473, allocations: 0.926 MB / 431.2 MB, free: 6.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004853/0.2478, allocations: 214.6 kB / 431.5 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002146/0.248, allocations: 92.81 kB / 431.5 MB, free: 6.355 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.248, allocations: 4 kB / 431.6 MB, free: 6.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.299e-05/0.2481, allocations: 34.56 kB / 431.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.552e-06/0.2481, allocations: 4 kB / 431.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001248/0.2493, allocations: 415 kB / 432 MB, free: 5.887 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.832e-05/0.2494, allocations: 55.41 kB / 432 MB, free: 5.82 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.2497, allocations: 257.9 kB / 432.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.762e-05/0.2497, allocations: 29.7 kB / 432.3 MB, free: 5.523 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.2498, allocations: 188.2 kB / 432.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.135e-05/0.2499, allocations: 79.36 kB / 432.6 MB, free: 5.258 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.127e-05/0.25, allocations: 41.94 kB / 432.6 MB, free: 5.207 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001657/0.2501, allocations: 330.8 kB / 433 MB, free: 4.875 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001973/0.2503, allocations: 76.42 kB / 433 MB, free: 4.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002258/0.2505, allocations: 116.6 kB / 433.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000396/0.2509, allocations: 186.4 kB / 433.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.2509, allocations: 0 / 433.3 MB, free: 4.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006658/0.2516, allocations: 318.8 kB / 433.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.895e-05/0.2516, allocations: 4 kB / 433.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.2516, allocations: 4 kB / 433.6 MB, free: 4.156 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002749/0.2519, allocations: 81.72 kB / 433.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.2521, allocations: 35.92 kB / 433.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002588/0.2547, allocations: 2.842 MB / 436.6 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2549, allocations: 23.91 kB / 436.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.37e-05/0.2549, allocations: 12 kB / 436.6 MB, free: 0.9258 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 (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.2551, allocations: 138 kB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.068e-05/0.2552, allocations: 31.88 kB / 436.8 MB, free: 0.75 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.184e-05/0.2552, allocations: 34.44 kB / 436.8 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2552, allocations: 4 kB / 436.8 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.2553, allocations: 7.938 kB / 436.8 MB, free: 0.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.2553, allocations: 4 kB / 436.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/0.2564, allocations: 0.6531 MB / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.2564, allocations: 0 / 437.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000141/0.2566, allocations: 23.92 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001991/0.2568, allocations: 73.61 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.73e-05/0.2568, allocations: 4 kB / 437.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002559/0.2594, allocations: 2.841 MB / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2594, allocations: 0 / 440.4 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006317/0.26, allocations: 379.1 kB / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.556e-05/0.26, allocations: 31.84 kB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.437e-05/0.2601, allocations: 8 kB / 440.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002533/0.2603, allocations: 27.97 kB / 440.9 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.239e-05/0.2604, allocations: 19.91 kB / 440.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.2604, allocations: 8 kB / 440.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.2606, allocations: 201.1 kB / 441.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2606, allocations: 0 / 441.1 MB, free: 12.13 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003925/0.261, allocations: 91.89 kB / 441.2 MB, free: 12.04 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 (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0009942/0.262, allocations: 0.9029 MB / 442.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008011/0.2628, allocations: 452.9 kB / 442.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.2628, allocations: 0 / 442.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004521/0.2632, allocations: 337.2 kB / 442.9 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003812/0.2636, allocations: 60.75 kB / 442.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003627/0.2672, allocations: 2.71 MB / 445.6 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000394/0.2676, allocations: 0.7641 MB / 446.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.215e-05/0.2677, allocations: 22.3 kB / 446.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001346/0.2679, allocations: 91.41 kB / 446.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2679, allocations: 0 / 446.5 MB, free: 6.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03385/0.3017, allocations: 6.674 MB / 453.2 MB, free: 20 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.4, allocations: 6.297 kB / 453.2 MB, free: 16 kB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.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: 13.883383515989408]