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) 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 4.0.0+maint.om/package.mo", uses=false) 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: translateModel(Modelica.Electrical.Analog.Examples.ShowVariableResistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|VariableResistor.i|R2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001338/0.001338, allocations: 110.5 kB / 17.28 MB, free: 6.074 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.001467/0.001467, allocations: 189.4 kB / 18.21 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.9 MB, free: 15.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001115/0.001116, allocations: 49.92 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09202/0.09315, allocations: 49.44 MB / 350.2 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ShowVariableResistor): time 0.004241/0.09742, allocations: 3.036 MB / 353.3 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.09874, allocations: 0.6778 MB / 353.9 MB, free: 1.012 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000263/0.09903, allocations: 8 kB / 354 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002005/0.09927, allocations: 43.62 kB / 354 MB, free: 0.9609 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002661/0.09954, allocations: 87.3 kB / 354.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.0998, allocations: 79.86 kB / 354.2 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004987/0.1003, allocations: 406.2 kB / 354.6 MB, free: 408 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002029/0.1005, allocations: 111.1 kB / 354.7 MB, free: 292 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002273/0.1008, allocations: 151.4 kB / 354.8 MB, free: 140 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.101, allocations: 163.4 kB / 355 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.026e-05/0.1011, allocations: 32 kB / 355 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.1011, allocations: 32 kB / 355 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.362e-05/0.1012, allocations: 75.7 kB / 355.1 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.1014, allocations: 175.1 kB / 355.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002684/0.1016, allocations: 287.5 kB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.906e-06/0.1016, allocations: 4 kB / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1016, allocations: 0 / 355.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.063e-05/0.1017, allocations: 4 kB / 355.6 MB, free: 15.38 MB / 302.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.000969/0.1026, allocations: 0.6197 MB / 356.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.1027, allocations: 23.88 kB / 356.2 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.313e-05/0.1028, allocations: 32.56 kB / 356.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003047/0.1031, allocations: 287.4 kB / 356.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.1031, allocations: 20.94 kB / 356.5 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.1031, allocations: 24.38 kB / 356.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005044/0.1037, allocations: 265.2 kB / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1037, allocations: 0 / 356.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.1037, allocations: 12 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.1037, allocations: 4 kB / 356.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004887/0.1042, allocations: 226.1 kB / 357.1 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/0.1058, allocations: 0.9677 MB / 358 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004719/0.1063, allocations: 295.8 kB / 358.3 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.1065, allocations: 112.8 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.1065, allocations: 4 kB / 358.4 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.396e-05/0.1065, allocations: 42.56 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.493e-06/0.1065, allocations: 0 / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001189/0.1077, allocations: 0.5621 MB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.1078, allocations: 51.41 kB / 359.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002443/0.108, allocations: 258.6 kB / 359.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.138e-05/0.1081, allocations: 29.7 kB / 359.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.1082, allocations: 179.9 kB / 359.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.1082, allocations: 74.91 kB / 359.6 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.581e-05/0.1083, allocations: 45.94 kB / 359.7 MB, free: 10.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1084, allocations: 326.8 kB / 360 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.1086, allocations: 80.42 kB / 360.1 MB, free: 10.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.1088, allocations: 111.4 kB / 360.2 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003671/0.1092, allocations: 186.5 kB / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1092, allocations: 0 / 360.4 MB, free: 10.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000626/0.1098, allocations: 322.6 kB / 360.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1099, allocations: 8.062 kB / 360.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.1099, allocations: 4 kB / 360.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002514/0.1101, allocations: 77.66 kB / 360.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.1103, allocations: 35.92 kB / 360.8 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002237/0.1126, allocations: 3.051 MB / 363.8 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.1128, allocations: 35.83 kB / 363.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.1128, allocations: 8 kB / 363.9 MB, free: 6.445 MB / 302.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.0001409/0.113, allocations: 133.8 kB / 364 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.08e-05/0.113, allocations: 35.59 kB / 364.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.576e-05/0.1131, allocations: 30.17 kB / 364.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1131, allocations: 4 kB / 364.1 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.113e-06/0.1131, allocations: 0 / 364.1 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1131, allocations: 7.938 kB / 364.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009742/0.1141, allocations: 0.687 MB / 364.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1141, allocations: 192 / 364.8 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001279/0.1142, allocations: 31.92 kB / 364.8 MB, free: 5.453 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001847/0.1144, allocations: 77.66 kB / 364.9 MB, free: 5.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.1145, allocations: 4 kB / 364.9 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002088/0.1165, allocations: 3.036 MB / 367.9 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.1166, allocations: 3.984 kB / 367.9 MB, free: 2.043 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005883/0.1172, allocations: 386.1 kB / 368.3 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.467e-05/0.1172, allocations: 100.8 kB / 368.4 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.1173, allocations: 12 kB / 368.4 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.1175, allocations: 23.97 kB / 368.4 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.1176, allocations: 23.97 kB / 368.5 MB, free: 1.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.412e-05/0.1176, allocations: 11.94 kB / 368.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000154/0.1178, allocations: 186 kB / 368.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1178, allocations: 3.938 kB / 368.7 MB, free: 1.273 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003581/0.1181, allocations: 91.84 kB / 368.8 MB, free: 1.184 MB / 302.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.0001131/0.1183, allocations: 111.2 kB / 368.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007296/0.119, allocations: 449.1 kB / 369.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.119, allocations: 0 / 369.3 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004033/0.1194, allocations: 350.6 kB / 369.6 MB, free: 240 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.1198, allocations: 64.64 kB / 369.7 MB, free: 176 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1361/0.2559, allocations: 0.6191 MB / 370.3 MB, free: 25.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.2562, allocations: 0.7645 MB / 371.1 MB, free: 24.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.877e-05/0.2563, allocations: 23.72 kB / 371.1 MB, free: 24.65 MB / 302.1 MB Notification: Performance of SimCode: time 7.92e-07/0.2563, allocations: 1.375 kB / 371.1 MB, free: 24.65 MB / 302.1 MB Notification: Performance of Templates: time 0.008233/0.2645, allocations: 5.611 MB / 376.7 MB, free: 24.24 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ShowVariableResistor.pipe 2>&1) 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) Reference file matches