Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 109.2 kB / 20.43 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002176/0.002176, allocations: 213.7 kB / 23.74 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.491/1.491, allocations: 230.6 MB / 257.5 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001672/0.001672, allocations: 43.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2683, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004591/0.2729, allocations: 3.05 MB / 434.2 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2743, allocations: 0.7634 MB / 435 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001449/0.2745, allocations: 4 kB / 435 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.2746, allocations: 59.44 kB / 435 MB, free: 2.953 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002009/0.2748, allocations: 103.1 kB / 435.1 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003341/0.2752, allocations: 99.78 kB / 435.2 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005189/0.2757, allocations: 414.2 kB / 435.6 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001995/0.2759, allocations: 79.58 kB / 435.7 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002764/0.2762, allocations: 155.5 kB / 435.9 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002266/0.2764, allocations: 171.2 kB / 436 MB, free: 1.949 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.284e-05/0.2765, allocations: 32 kB / 436.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.513e-05/0.2765, allocations: 40 kB / 436.1 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.705e-05/0.2766, allocations: 75.73 kB / 436.2 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002009/0.2768, allocations: 171.1 kB / 436.3 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005393/0.2774, allocations: 398.8 kB / 436.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.2774, allocations: 0 / 436.7 MB, free: 1.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.216e-06/0.2774, allocations: 7.938 kB / 436.7 MB, free: 1.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.506e-06/0.2774, allocations: 0 / 436.7 MB, free: 1.242 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.00101/0.2784, allocations: 0.5675 MB / 437.3 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.2784, allocations: 15.97 kB / 437.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.376e-05/0.2785, allocations: 58.73 kB / 437.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001852/0.2787, allocations: 48.69 kB / 437.4 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004198/0.2791, allocations: 229.9 kB / 437.6 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.869e-05/0.2791, allocations: 21.03 kB / 437.7 MB, free: 248 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.2792, allocations: 24.38 kB / 437.7 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005337/0.2797, allocations: 266.2 kB / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.2797, allocations: 0 / 437.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.78e-05/0.2798, allocations: 12 kB / 438 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.796e-06/0.2798, allocations: 8 kB / 438 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004956/0.2803, allocations: 214.5 kB / 438.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001716/0.282, allocations: 0.9415 MB / 439.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004924/0.2825, allocations: 197.3 kB / 439.3 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002234/0.2827, allocations: 100.7 kB / 439.4 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.734e-05/0.2827, allocations: 8 kB / 439.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.083e-05/0.2827, allocations: 34.56 kB / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.2828, allocations: 0 / 439.5 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001227/0.284, allocations: 409.6 kB / 439.9 MB, free: 13.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.284, allocations: 55.41 kB / 439.9 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002862/0.2843, allocations: 261.9 kB / 440.2 MB, free: 13.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.2843, allocations: 25.7 kB / 440.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.2845, allocations: 188.2 kB / 440.4 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.092e-05/0.2845, allocations: 83.3 kB / 440.5 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.116e-05/0.2846, allocations: 45.89 kB / 440.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.2848, allocations: 338.8 kB / 440.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001939/0.285, allocations: 76.42 kB / 440.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.2852, allocations: 107.5 kB / 441 MB, free: 12.75 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003896/0.2856, allocations: 186.5 kB / 441.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.2856, allocations: 3.938 kB / 441.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006518/0.2862, allocations: 322.9 kB / 441.5 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.2862, allocations: 10.34 kB / 441.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.2862, allocations: 0 / 441.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003167/0.2866, allocations: 77.67 kB / 441.6 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001867/0.2867, allocations: 39.91 kB / 441.6 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002842/0.2896, allocations: 2.841 MB / 444.5 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001949/0.2898, allocations: 31.91 kB / 444.5 MB, free: 8.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.747e-05/0.2898, allocations: 8 kB / 444.5 MB, free: 8.988 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 (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.0001726/0.29, allocations: 145.7 kB / 444.7 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.651e-05/0.29, allocations: 27.81 kB / 444.7 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.347e-05/0.2901, allocations: 34.27 kB / 444.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2901, allocations: 0 / 444.7 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.2901, allocations: 4 kB / 444.7 MB, free: 8.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.2901, allocations: 4 kB / 444.7 MB, free: 8.766 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.2911, allocations: 0.653 MB / 445.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2911, allocations: 0 / 445.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001308/0.2913, allocations: 35.97 kB / 445.4 MB, free: 8.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001834/0.2915, allocations: 65.67 kB / 445.5 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.2915, allocations: 8 kB / 445.5 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.294, allocations: 2.837 MB / 448.3 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.294, allocations: 4.031 kB / 448.3 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006185/0.2946, allocations: 383.8 kB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.312e-05/0.2947, allocations: 27.81 kB / 448.7 MB, free: 4.445 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.031e-05/0.2947, allocations: 4 kB / 448.7 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002423/0.2949, allocations: 35.97 kB / 448.8 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.682e-05/0.295, allocations: 15.95 kB / 448.8 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.295, allocations: 12 kB / 448.8 MB, free: 4.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001832/0.2952, allocations: 185.2 kB / 449 MB, free: 4.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2952, allocations: 0 / 449 MB, free: 4.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000414/0.2956, allocations: 95.77 kB / 449.1 MB, free: 4.102 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.0009455/0.2966, allocations: 0.9207 MB / 450 MB, free: 3.148 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008059/0.2974, allocations: 439.4 kB / 450.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.2974, allocations: 0 / 450.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004349/0.2978, allocations: 341.3 kB / 450.8 MB, free: 2.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003829/0.2982, allocations: 44.47 kB / 450.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003752/0.3019, allocations: 2.722 MB / 453.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004322/0.3024, allocations: 0.7678 MB / 454.3 MB, free: 14.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001089/0.3025, allocations: 26.28 kB / 454.3 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000141/0.3026, allocations: 87.41 kB / 454.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3026, allocations: 0 / 454.4 MB, free: 14.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04083/0.3435, allocations: 6.672 MB / 461.1 MB, free: 8.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.58/11.93, allocations: 5.672 kB / 461.1 MB, free: 8.066 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor_fmu --startTime=0 --stopTime=1 --stepSize=0.00019992 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 14.452962659997866]