Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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.001275/0.001275, allocations: 73.8 kB / 21.24 MB, free: 0.5547 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.001391/0.001391, allocations: 158.6 kB / 24.5 MB, free: 3.715 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.457/1.457, allocations: 177.2 MB / 204.9 MB, free: 8.988 MB / 190.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: translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") translateModel(Modelica.Electrical.Analog.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|resistor.i|resistor.LossPower",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001561/0.001561, allocations: 54.03 kB / 325.6 MB, free: 460 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09726/0.09882, allocations: 53.34 MB / 378.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003442/0.1023, allocations: 2.087 MB / 381 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001021/0.1033, allocations: 0.5767 MB / 381.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.414e-05/0.1034, allocations: 3.938 kB / 381.6 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.1035, allocations: 23.78 kB / 381.6 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.1036, allocations: 47.62 kB / 381.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002504/0.1038, allocations: 51.81 kB / 381.7 MB, free: 13 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.104, allocations: 163.2 kB / 381.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.1042, allocations: 49.58 kB / 381.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001507/0.1043, allocations: 67.72 kB / 382 MB, free: 12.71 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.1044, allocations: 59.64 kB / 382 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.714e-05/0.1045, allocations: 12 kB / 382 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.887e-05/0.1046, allocations: 28 kB / 382.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.863e-05/0.1046, allocations: 35.89 kB / 382.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.073e-05/0.1047, allocations: 59.73 kB / 382.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000236/0.1049, allocations: 163.3 kB / 382.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.1049, allocations: 0 / 382.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1049, allocations: 0 / 382.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.1049, allocations: 0 / 382.3 MB, free: 12.36 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005911/0.1055, allocations: 365.9 kB / 382.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.1055, allocations: 12.02 kB / 382.7 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001814/0.1057, allocations: 28.84 kB / 382.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002622/0.106, allocations: 165.2 kB / 382.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.227e-05/0.106, allocations: 8.609 kB / 382.9 MB, free: 11.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.106, allocations: 16.38 kB / 382.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002727/0.1063, allocations: 150.4 kB / 383 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.448e-06/0.1063, allocations: 0 / 383 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.1063, allocations: 4 kB / 383 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.014e-06/0.1063, allocations: 4 kB / 383.1 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001907/0.1065, allocations: 80.64 kB / 383.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007497/0.1073, allocations: 443.4 kB / 383.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.1076, allocations: 86.5 kB / 383.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.107e-05/0.1076, allocations: 32.97 kB / 383.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.163e-05/0.1077, allocations: 0 / 383.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.1077, allocations: 30.56 kB / 383.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 8.72e-07/0.1077, allocations: 0 / 383.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006688/0.1084, allocations: 178.3 kB / 383.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1084, allocations: 55.39 kB / 383.9 MB, free: 10.59 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.1085, allocations: 152.9 kB / 384.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.1086, allocations: 29.7 kB / 384.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.21e-05/0.1087, allocations: 132.1 kB / 384.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.1087, allocations: 27.73 kB / 384.3 MB, free: 10.24 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.282e-05/0.1087, allocations: 17.72 kB / 384.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.1088, allocations: 322.8 kB / 384.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.892e-05/0.1089, allocations: 23.98 kB / 384.6 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.703e-05/0.109, allocations: 50.44 kB / 384.7 MB, free: 9.809 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.1091, allocations: 66.56 kB / 384.7 MB, free: 9.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1091, allocations: 4 kB / 384.7 MB, free: 9.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002989/0.1094, allocations: 138.3 kB / 384.9 MB, free: 9.586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.1095, allocations: 4 kB / 384.9 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1095, allocations: 4 kB / 384.9 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001676/0.1096, allocations: 28.84 kB / 384.9 MB, free: 9.547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.641e-05/0.1097, allocations: 11.98 kB / 384.9 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.1113, allocations: 1.567 MB / 386.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.012e-05/0.1114, allocations: 7.938 kB / 386.5 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.1114, allocations: 0 / 386.5 MB, free: 7.859 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 (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001048/0.1115, allocations: 125.8 kB / 386.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.562e-05/0.1116, allocations: 15.95 kB / 386.6 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.385e-05/0.1116, allocations: 16.77 kB / 386.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.1116, allocations: 0 / 386.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-06/0.1116, allocations: 0 / 386.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1116, allocations: 0 / 386.7 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001795/0.1118, allocations: 137.3 kB / 386.8 MB, free: 7.535 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.1118, allocations: 4 kB / 386.8 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.682e-05/0.1118, allocations: 3.984 kB / 386.8 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000126/0.1119, allocations: 36.84 kB / 386.8 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.1119, allocations: 7.922 kB / 386.8 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001404/0.1134, allocations: 1.555 MB / 388.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1134, allocations: 0 / 388.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.1137, allocations: 216.2 kB / 388.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.304e-05/0.1137, allocations: 15.91 kB / 388.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.397e-05/0.1137, allocations: 4 kB / 388.6 MB, free: 5.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.1138, allocations: 8.062 kB / 388.6 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.427e-05/0.1139, allocations: 7.984 kB / 388.6 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/0.1139, allocations: 4 kB / 388.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.529e-05/0.1139, allocations: 110.4 kB / 388.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1139, allocations: 0 / 388.8 MB, free: 5.441 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003725/0.1143, allocations: 47.83 kB / 388.8 MB, free: 5.395 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 (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 9.901e-05/0.1144, allocations: 95.25 kB / 388.9 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.1148, allocations: 194.7 kB / 389.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1148, allocations: 0 / 389.1 MB, free: 5.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002168/0.115, allocations: 154.6 kB / 389.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002533/0.1153, allocations: 11.94 kB / 389.3 MB, free: 4.914 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005393/0.1158, allocations: 300.8 kB / 389.5 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.365e-05/0.1159, allocations: 98.2 kB / 389.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.605e-05/0.116, allocations: 4.5 kB / 389.6 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.496e-05/0.116, allocations: 16.5 kB / 389.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.116, allocations: 0 / 389.7 MB, free: 4.457 MB / 350.1 MB Notification: Performance of Templates: time 0.004633/0.1206, allocations: 1.439 MB / 391.1 MB, free: 3.035 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/Resistor/Resistor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.Resistor.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: 4.177143195993267]