Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 109.4 kB / 18.34 MB, free: 4.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001586/0.001586, allocations: 188.1 kB / 19.28 MB, free: 3.75 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.391/1.391, allocations: 205.1 MB / 225.1 MB, free: 12.27 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 59.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08783, allocations: 46.62 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.00412/0.09199, allocations: 2.979 MB / 331.7 MB, free: 0.7578 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001164/0.09318, allocations: 0.7098 MB / 332.4 MB, free: 40 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001421/0.09334, allocations: 15.88 kB / 332.4 MB, free: 24 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001906/0.09358, allocations: 47.61 kB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001855/0.09377, allocations: 103 kB / 332.6 MB, free: 15.87 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/0.09402, allocations: 87.88 kB / 332.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000417/0.09445, allocations: 414 kB / 333.1 MB, free: 15.38 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002051/0.09466, allocations: 107.1 kB / 333.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.09487, allocations: 155.5 kB / 333.3 MB, free: 15.13 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00019/0.09507, allocations: 159.3 kB / 333.5 MB, free: 14.98 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.796e-05/0.09513, allocations: 36 kB / 333.5 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.922e-05/0.09518, allocations: 32 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.344e-05/0.09526, allocations: 75.69 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001556/0.09542, allocations: 175.1 kB / 333.8 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.09578, allocations: 382.6 kB / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.09579, allocations: 0 / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.0958, allocations: 0 / 334.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.09581, allocations: 0 / 334.2 MB, free: 14.29 MB / 286.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.0009526/0.09677, allocations: 0.6314 MB / 334.8 MB, free: 13.61 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.09681, allocations: 11.89 kB / 334.8 MB, free: 13.59 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.78e-05/0.09688, allocations: 36.56 kB / 334.8 MB, free: 13.56 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003892/0.09728, allocations: 295.4 kB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.09732, allocations: 20.94 kB / 335.1 MB, free: 13.21 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.667e-05/0.09736, allocations: 24.38 kB / 335.2 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005149/0.09788, allocations: 265.1 kB / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.0979, allocations: 0 / 335.4 MB, free: 12.93 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.02e-05/0.09794, allocations: 12 kB / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.09795, allocations: 8 kB / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004725/0.09843, allocations: 218.1 kB / 335.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.1, allocations: 0.9599 MB / 336.6 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005161/0.1005, allocations: 311.7 kB / 336.9 MB, free: 11.33 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.1008, allocations: 108.8 kB / 337 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.1008, allocations: 0 / 337 MB, free: 11.22 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.035e-05/0.1008, allocations: 38.5 kB / 337.1 MB, free: 11.18 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.512e-06/0.1008, allocations: 4 kB / 337.1 MB, free: 11.17 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001237/0.1021, allocations: 0.5597 MB / 337.6 MB, free: 10.56 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.1021, allocations: 59.39 kB / 337.7 MB, free: 10.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002434/0.1024, allocations: 250.6 kB / 337.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.1024, allocations: 29.7 kB / 338 MB, free: 10.2 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1025, allocations: 183.9 kB / 338.1 MB, free: 10.02 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.1026, allocations: 71 kB / 338.2 MB, free: 9.945 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.999e-05/0.1027, allocations: 45.84 kB / 338.3 MB, free: 9.895 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1028, allocations: 338.8 kB / 338.6 MB, free: 9.555 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001925/0.103, allocations: 84.42 kB / 338.7 MB, free: 9.473 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.1032, allocations: 103.5 kB / 338.8 MB, free: 9.363 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003673/0.1036, allocations: 194.3 kB / 339 MB, free: 9.164 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1036, allocations: 0 / 339 MB, free: 9.164 MB / 286.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006159/0.1042, allocations: 318.7 kB / 339.3 MB, free: 8.84 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.963e-05/0.1042, allocations: 12.06 kB / 339.3 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.1043, allocations: 0 / 339.3 MB, free: 8.828 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002854/0.1045, allocations: 73.67 kB / 339.4 MB, free: 8.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001917/0.1047, allocations: 39.91 kB / 339.4 MB, free: 8.711 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002536/0.1073, allocations: 3.04 MB / 342.4 MB, free: 5.387 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002128/0.1075, allocations: 23.83 kB / 342.5 MB, free: 5.363 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.1076, allocations: 8 kB / 342.5 MB, free: 5.355 MB / 286.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.0001709/0.1077, allocations: 137.9 kB / 342.6 MB, free: 5.211 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.1078, allocations: 31.66 kB / 342.6 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.647e-05/0.1079, allocations: 26.17 kB / 342.7 MB, free: 5.156 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.1079, allocations: 7.984 kB / 342.7 MB, free: 5.148 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.1079, allocations: 3.938 kB / 342.7 MB, free: 5.145 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.1079, allocations: 3.984 kB / 342.7 MB, free: 5.141 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001032/0.1089, allocations: 0.692 MB / 343.4 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.306e-06/0.1089, allocations: 0 / 343.4 MB, free: 4.383 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001344/0.1091, allocations: 28.16 kB / 343.4 MB, free: 4.355 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002055/0.1093, allocations: 81.61 kB / 343.5 MB, free: 4.27 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1093, allocations: 8 kB / 343.5 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002444/0.1118, allocations: 3.032 MB / 346.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1118, allocations: 0 / 346.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006187/0.1124, allocations: 385.4 kB / 346.9 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/0.1125, allocations: 108.8 kB / 347 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.864e-05/0.1126, allocations: 0 / 347 MB, free: 440 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002514/0.1128, allocations: 31.98 kB / 347 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/0.1129, allocations: 19.97 kB / 347 MB, free: 388 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.746e-05/0.1129, allocations: 8 kB / 347 MB, free: 380 kB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001807/0.1131, allocations: 190 kB / 347.2 MB, free: 188 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1131, allocations: 3.938 kB / 347.2 MB, free: 184 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004286/0.1135, allocations: 95.75 kB / 347.3 MB, free: 88 kB / 286.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.0001731/0.1137, allocations: 115.1 kB / 347.4 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007956/0.1145, allocations: 441.1 kB / 347.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.1145, allocations: 0 / 347.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004321/0.115, allocations: 349.4 kB / 348.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003946/0.1154, allocations: 52.59 kB / 348.3 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000857/0.1162, allocations: 496.6 kB / 348.8 MB, free: 14.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1167, allocations: 0.7678 MB / 349.5 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.46e-05/0.1168, allocations: 18.3 kB / 349.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.125e-05/0.1168, allocations: 19.44 kB / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1168, allocations: 0 / 349.6 MB, free: 13.75 MB / 302.1 MB Notification: Performance of Templates: time 0.007615/0.1244, allocations: 3.704 MB / 353.3 MB, free: 10.05 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ShowVariableResistor/ShowVariableResistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ShowVariableResistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches