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.001771/0.001771, allocations: 120.1 kB / 18.49 MB, free: 4.562 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.002033/0.002033, allocations: 215.1 kB / 21.45 MB, free: 1.617 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.431/1.431, allocations: 230.6 MB / 254.8 MB, free: 15.25 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ShowVariableResistor,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ShowVariableResistor",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 51.88 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1082/0.1097, allocations: 53.33 MB / 427 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004518/0.1142, allocations: 3.033 MB / 430.1 MB, free: 1.773 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001545/0.1157, allocations: 0.7594 MB / 430.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.1159, allocations: 12 kB / 430.8 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.1161, allocations: 55.44 kB / 430.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.1163, allocations: 103 kB / 431 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003398/0.1166, allocations: 103.8 kB / 431.1 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004672/0.1171, allocations: 410.2 kB / 431.5 MB, free: 344 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002043/0.1173, allocations: 79.11 kB / 431.6 MB, free: 260 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.1176, allocations: 163.4 kB / 431.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002358/0.1178, allocations: 163.3 kB / 431.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.311e-05/0.1179, allocations: 32 kB / 431.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.169e-05/0.1179, allocations: 36 kB / 432 MB, free: 15.86 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 6.838e-05/0.118, allocations: 75.66 kB / 432 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001736/0.1182, allocations: 175.2 kB / 432.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004808/0.1187, allocations: 398.3 kB / 432.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1187, allocations: 0 / 432.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.1187, allocations: 3.938 kB / 432.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.677e-06/0.1187, allocations: 4 kB / 432.6 MB, free: 15.22 MB / 366.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.001071/0.1198, allocations: 0.6389 MB / 433.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.1198, allocations: 12.03 kB / 433.2 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.763e-05/0.1198, allocations: 8.75 kB / 433.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.311e-05/0.1199, allocations: 62.72 kB / 433.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.1201, allocations: 48.69 kB / 433.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.1205, allocations: 275.9 kB / 433.6 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.409e-05/0.1206, allocations: 24.88 kB / 433.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.1206, allocations: 24.38 kB / 433.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005492/0.1212, allocations: 268.8 kB / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1212, allocations: 0 / 433.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.426e-05/0.1212, allocations: 12 kB / 434 MB, free: 13.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.1212, allocations: 8 kB / 434 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004951/0.1217, allocations: 218.1 kB / 434.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.1234, allocations: 0.9758 MB / 435.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006018/0.124, allocations: 283.7 kB / 435.4 MB, free: 12.19 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002363/0.1242, allocations: 96.8 kB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.532e-05/0.1243, allocations: 8 kB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.1243, allocations: 34.5 kB / 435.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.483e-06/0.1243, allocations: 0 / 435.6 MB, free: 12.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001326/0.1256, allocations: 0.554 MB / 436.1 MB, free: 11.44 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.1257, allocations: 59.34 kB / 436.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002783/0.126, allocations: 266.6 kB / 436.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.126, allocations: 33.7 kB / 436.5 MB, free: 11.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.1261, allocations: 180.2 kB / 436.6 MB, free: 10.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.346e-05/0.1262, allocations: 79.31 kB / 436.7 MB, free: 10.81 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.26e-05/0.1263, allocations: 45.89 kB / 436.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1264, allocations: 334.8 kB / 437.1 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001989/0.1266, allocations: 72.44 kB / 437.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002197/0.1268, allocations: 107.5 kB / 437.3 MB, free: 10.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004003/0.1272, allocations: 186.5 kB / 437.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1272, allocations: 0 / 437.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006725/0.1279, allocations: 322.8 kB / 437.8 MB, free: 9.715 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.87e-05/0.1279, allocations: 8 kB / 437.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.1279, allocations: 0 / 437.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002859/0.1282, allocations: 77.72 kB / 437.9 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001941/0.1284, allocations: 39.92 kB / 437.9 MB, free: 9.586 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002663/0.1311, allocations: 3.048 MB / 440.9 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.1313, allocations: 27.81 kB / 441 MB, free: 6.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.608e-05/0.1313, allocations: 4 kB / 441 MB, free: 6.227 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.0001721/0.1315, allocations: 146 kB / 441.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.82e-05/0.1315, allocations: 31.81 kB / 441.1 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.878e-05/0.1316, allocations: 34.16 kB / 441.2 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.1316, allocations: 8 kB / 441.2 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1316, allocations: 0 / 441.2 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.1316, allocations: 0 / 441.2 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.1327, allocations: 0.6835 MB / 441.9 MB, free: 5.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.1327, allocations: 4 kB / 441.9 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001296/0.1328, allocations: 23.92 kB / 441.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002058/0.133, allocations: 73.66 kB / 442 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.133, allocations: 8 kB / 442 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/0.1355, allocations: 3.04 MB / 445 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1355, allocations: 0 / 445 MB, free: 1.812 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006617/0.1362, allocations: 388.2 kB / 445.4 MB, free: 1.414 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.1363, allocations: 101 kB / 445.5 MB, free: 1.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.856e-05/0.1363, allocations: 4 kB / 445.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/0.1366, allocations: 31.97 kB / 445.5 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.931e-05/0.1367, allocations: 15.97 kB / 445.5 MB, free: 1.246 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.753e-05/0.1367, allocations: 12 kB / 445.6 MB, free: 1.234 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002057/0.1369, allocations: 193.9 kB / 445.7 MB, free: 1.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1369, allocations: 3.938 kB / 445.7 MB, free: 1.043 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004217/0.1373, allocations: 95.83 kB / 445.8 MB, free: 0.9492 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.0009879/0.1383, allocations: 0.9129 MB / 446.8 MB, free: 4 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.195/0.3333, allocations: 434.5 kB / 447.2 MB, free: 24.14 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.849e-06/0.3333, allocations: 0 / 447.2 MB, free: 24.14 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003991/0.3337, allocations: 337.4 kB / 447.5 MB, free: 23.92 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004544/0.3341, allocations: 50.52 kB / 447.6 MB, free: 23.92 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00309/0.3372, allocations: 2.713 MB / 450.3 MB, free: 22.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001858/0.3374, allocations: 0.7668 MB / 451 MB, free: 21.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.3375, allocations: 23.8 kB / 451.1 MB, free: 21.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.3376, allocations: 90.22 kB / 451.2 MB, free: 21.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.031e-06/0.3376, allocations: 1.406 kB / 451.2 MB, free: 21.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03575/0.3734, allocations: 6.538 MB / 457.7 MB, free: 21.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.971/10.34, allocations: 15.34 kB / 457.7 MB, free: 21.22 MB / 366.1 MB " [Timeout remaining time 650] (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: 12.927575532987248]