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.001378/0.001378, allocations: 115.7 kB / 18.49 MB, free: 4.586 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.001436/0.001436, allocations: 194.5 kB / 21.43 MB, free: 1.656 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.393/1.393, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.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.001469/0.001469, allocations: 47.92 kB / 366.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09892/0.1004, allocations: 52.15 MB / 418.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00463/0.105, allocations: 3.007 MB / 421.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001213/0.1062, allocations: 0.6816 MB / 422.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001341/0.1064, allocations: 8 kB / 422.2 MB, free: 8.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.1065, allocations: 59.38 kB / 422.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001786/0.1067, allocations: 107 kB / 422.4 MB, free: 8.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.107, allocations: 87.86 kB / 422.4 MB, free: 8.645 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004299/0.1074, allocations: 414.2 kB / 422.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.1076, allocations: 83.09 kB / 422.9 MB, free: 8.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002125/0.1078, allocations: 151.5 kB / 423.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002094/0.108, allocations: 163.3 kB / 423.2 MB, free: 7.844 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.1081, allocations: 32 kB / 423.3 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.423e-05/0.1081, allocations: 32 kB / 423.3 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.008e-05/0.1082, allocations: 71.75 kB / 423.4 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.1084, allocations: 179.1 kB / 423.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00044/0.1088, allocations: 390.3 kB / 423.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.1088, allocations: 0 / 423.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.1088, allocations: 0 / 423.9 MB, free: 7.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.665e-06/0.1088, allocations: 0 / 423.9 MB, free: 7.152 MB / 350.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.001085/0.1099, allocations: 0.6428 MB / 424.6 MB, free: 6.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.11, allocations: 11.89 kB / 424.6 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.312e-05/0.11, allocations: 8.75 kB / 424.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.961e-05/0.1101, allocations: 66.72 kB / 424.6 MB, free: 6.363 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.389e-05/0.1101, allocations: 40.7 kB / 424.7 MB, free: 6.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004269/0.1106, allocations: 287.6 kB / 425 MB, free: 6.004 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.1106, allocations: 20.94 kB / 425 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.122e-05/0.1106, allocations: 24.38 kB / 425 MB, free: 5.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.1112, allocations: 264.7 kB / 425.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.445e-05/0.1112, allocations: 0 / 425.3 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.071e-05/0.1112, allocations: 16 kB / 425.3 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.276e-05/0.1112, allocations: 8 kB / 425.3 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005211/0.1118, allocations: 218.1 kB / 425.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001741/0.1135, allocations: 0.968 MB / 426.5 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005493/0.1141, allocations: 282.4 kB / 426.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002193/0.1143, allocations: 92.81 kB / 426.8 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.156e-05/0.1143, allocations: 8 kB / 426.8 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.139e-05/0.1143, allocations: 34.56 kB / 426.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.182e-06/0.1143, allocations: 0 / 426.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.00135/0.1157, allocations: 0.5676 MB / 427.5 MB, free: 3.363 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/0.1157, allocations: 55.41 kB / 427.5 MB, free: 3.297 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002767/0.116, allocations: 254.6 kB / 427.8 MB, free: 3.039 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.116, allocations: 29.7 kB / 427.8 MB, free: 3.004 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1162, allocations: 188.2 kB / 428 MB, free: 2.816 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.958e-05/0.1162, allocations: 71.38 kB / 428 MB, free: 2.746 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.819e-05/0.1163, allocations: 49.94 kB / 428.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1165, allocations: 338.8 kB / 428.4 MB, free: 2.348 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.1167, allocations: 72.42 kB / 428.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.1169, allocations: 112.1 kB / 428.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003982/0.1173, allocations: 187.1 kB / 428.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1173, allocations: 0 / 428.8 MB, free: 1.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006601/0.118, allocations: 322.9 kB / 429.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.118, allocations: 4 kB / 429.1 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.118, allocations: 4 kB / 429.1 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003022/0.1183, allocations: 73.67 kB / 429.2 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001949/0.1185, allocations: 39.91 kB / 429.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002835/0.1213, allocations: 3.048 MB / 432.3 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000198/0.1215, allocations: 35.8 kB / 432.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.024e-05/0.1215, allocations: 8 kB / 432.3 MB, free: 14.15 MB / 366.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.0001529/0.1217, allocations: 138 kB / 432.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.47e-05/0.1217, allocations: 27.84 kB / 432.5 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.759e-05/0.1218, allocations: 34.19 kB / 432.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.1218, allocations: 4.062 kB / 432.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.1218, allocations: 7.938 kB / 432.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.1218, allocations: 3.984 kB / 432.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001054/0.1229, allocations: 0.6815 MB / 433.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1229, allocations: 4 kB / 433.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000136/0.123, allocations: 27.97 kB / 433.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002041/0.1232, allocations: 73.61 kB / 433.3 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.857e-05/0.1232, allocations: 8 kB / 433.3 MB, free: 13.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002502/0.1257, allocations: 3.036 MB / 436.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1257, allocations: 0 / 436.3 MB, free: 9.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006334/0.1264, allocations: 382.7 kB / 436.7 MB, free: 9.348 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.318e-05/0.1264, allocations: 108.9 kB / 436.8 MB, free: 9.223 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.1265, allocations: 4 kB / 436.8 MB, free: 9.219 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000256/0.1267, allocations: 31.97 kB / 436.9 MB, free: 9.188 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.161e-05/0.1268, allocations: 15.98 kB / 436.9 MB, free: 9.172 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/0.1268, allocations: 11.98 kB / 436.9 MB, free: 9.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.127, allocations: 185.9 kB / 437.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.127, allocations: 0 / 437.1 MB, free: 8.977 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003922/0.1274, allocations: 95.89 kB / 437.2 MB, free: 8.883 MB / 366.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.0009888/0.1284, allocations: 0.9223 MB / 438.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000819/0.1292, allocations: 433.1 kB / 438.5 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1292, allocations: 128 / 438.5 MB, free: 7.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004515/0.1297, allocations: 347.9 kB / 438.8 MB, free: 7.117 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003778/0.13, allocations: 48.53 kB / 438.9 MB, free: 7.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00373/0.1338, allocations: 2.718 MB / 441.6 MB, free: 4.242 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.1342, allocations: 0.76 MB / 442.4 MB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.1343, allocations: 22.28 kB / 442.4 MB, free: 3.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001362/0.1344, allocations: 95.39 kB / 442.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1344, allocations: 0 / 442.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2134/0.3478, allocations: 6.491 MB / 449 MB, free: 30.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.872/10.22, allocations: 8.594 kB / 449 MB, free: 30.84 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.765205111994874]