Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 111.9 kB / 17.28 MB, free: 6.219 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.001039/0.001039, allocations: 193.3 kB / 18.2 MB, free: 5.301 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.626/1.626, allocations: 205.1 MB / 224 MB, free: 12.45 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.001333/0.001333, allocations: 43.94 kB / 280.1 MB, free: 3.512 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09682/0.09816, allocations: 46.63 MB / 326.8 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004171/0.1024, allocations: 2.865 MB / 329.6 MB, free: 1.918 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001422/0.1038, allocations: 0.7681 MB / 330.4 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000247/0.1041, allocations: 4 kB / 330.4 MB, free: 1.137 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001973/0.1043, allocations: 39.69 kB / 330.5 MB, free: 1.098 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002522/0.1046, allocations: 75.38 kB / 330.5 MB, free: 1.023 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.105, allocations: 87.86 kB / 330.6 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005416/0.1055, allocations: 374.4 kB / 331 MB, free: 0.5703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002709/0.1058, allocations: 119.2 kB / 331.1 MB, free: 468 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002072/0.106, allocations: 131.6 kB / 331.2 MB, free: 336 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002527/0.1063, allocations: 155.3 kB / 331.4 MB, free: 180 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.33e-05/0.1063, allocations: 28 kB / 331.4 MB, free: 152 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.695e-05/0.1064, allocations: 32 kB / 331.4 MB, free: 120 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001216/0.1065, allocations: 75.73 kB / 331.5 MB, free: 44 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001987/0.1067, allocations: 167.2 kB / 331.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003884/0.1071, allocations: 359 kB / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1072, allocations: 0 / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1072, allocations: 0 / 332 MB, free: 15.53 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.248e-05/0.1072, allocations: 0 / 332 MB, free: 15.53 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001085/0.1083, allocations: 0.6057 MB / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.1083, allocations: 8.031 kB / 332.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.381e-05/0.1084, allocations: 40.56 kB / 332.7 MB, free: 14.82 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.1087, allocations: 264.3 kB / 332.9 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.965e-05/0.1088, allocations: 76.62 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.04e-05/0.1089, allocations: 32.36 kB / 333 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005295/0.1094, allocations: 301.8 kB / 333.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.1095, allocations: 0 / 333.3 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.1095, allocations: 12 kB / 333.3 MB, free: 14.09 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.959e-06/0.1095, allocations: 8 kB / 333.4 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003748/0.1099, allocations: 194.1 kB / 333.5 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001695/0.1116, allocations: 1.131 MB / 334.7 MB, free: 12.67 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.1119, allocations: 158.5 kB / 334.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.1121, allocations: 80.83 kB / 334.9 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.1121, allocations: 3.984 kB / 334.9 MB, free: 12.42 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003567/0.1125, allocations: 157.8 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.954e-06/0.1125, allocations: 4 kB / 335.1 MB, free: 12.24 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001056/0.1135, allocations: 383.1 kB / 335.4 MB, free: 11.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.1136, allocations: 106.8 kB / 335.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.1138, allocations: 229 kB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.984e-05/0.1139, allocations: 29.7 kB / 335.8 MB, free: 11.44 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.114, allocations: 184.1 kB / 336 MB, free: 11.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.784e-05/0.1141, allocations: 63.02 kB / 336 MB, free: 11.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.98e-05/0.1142, allocations: 61.69 kB / 336.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.1143, allocations: 334.8 kB / 336.4 MB, free: 10.79 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.1144, allocations: 59.97 kB / 336.5 MB, free: 10.73 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001651/0.1146, allocations: 148.6 kB / 336.6 MB, free: 10.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002616/0.1149, allocations: 188.2 kB / 336.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.1149, allocations: 4 kB / 336.8 MB, free: 10.35 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004376/0.1153, allocations: 275.6 kB / 337.1 MB, free: 10.07 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1154, allocations: 8.219 kB / 337.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.837e-06/0.1154, allocations: 4 kB / 337.1 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002608/0.1156, allocations: 52.81 kB / 337.2 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.1159, allocations: 47.92 kB / 337.2 MB, free: 9.957 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.1173, allocations: 1.572 MB / 338.8 MB, free: 8.25 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002334/0.1176, allocations: 35.67 kB / 338.8 MB, free: 8.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.168e-05/0.1176, allocations: 19.94 kB / 338.8 MB, free: 8.195 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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,1)} Notification: Performance of prepare postOptimizeDAE: time 0.000154/0.1178, allocations: 145.7 kB / 339 MB, free: 8.043 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.581e-05/0.1178, allocations: 23.88 kB / 339 MB, free: 8.02 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.058e-05/0.1179, allocations: 22.19 kB / 339 MB, free: 8 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.676e-06/0.1179, allocations: 4 kB / 339 MB, free: 7.996 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1179, allocations: 3.984 kB / 339 MB, free: 7.992 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.1179, allocations: 0 / 339 MB, free: 7.992 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.1182, allocations: 333.2 kB / 339.3 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.1183, allocations: 0 / 339.3 MB, free: 7.617 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000163/0.1184, allocations: 35.92 kB / 339.4 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001821/0.1186, allocations: 56.81 kB / 339.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.935e-05/0.1187, allocations: 0 / 339.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001491/0.1201, allocations: 1.422 MB / 340.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1202, allocations: 0 / 340.9 MB, free: 5.961 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006098/0.1208, allocations: 330.4 kB / 341.2 MB, free: 5.617 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001375/0.1209, allocations: 124.6 kB / 341.3 MB, free: 5.477 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.676e-05/0.121, allocations: 4 kB / 341.3 MB, free: 5.473 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001749/0.1211, allocations: 19.98 kB / 341.3 MB, free: 5.453 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.693e-05/0.1212, allocations: 27.95 kB / 341.4 MB, free: 5.426 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.287e-05/0.1213, allocations: 8.062 kB / 341.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001488/0.1214, allocations: 160.5 kB / 341.5 MB, free: 5.262 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1214, allocations: 4 kB / 341.5 MB, free: 5.258 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003621/0.1218, allocations: 75.84 kB / 341.6 MB, free: 5.184 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001528/0.122, allocations: 107.2 kB / 341.7 MB, free: 5.07 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006639/0.1226, allocations: 298.8 kB / 342 MB, free: 4.766 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1226, allocations: 4.062 kB / 342 MB, free: 4.762 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003444/0.123, allocations: 194.5 kB / 342.2 MB, free: 4.559 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.1234, allocations: 44.34 kB / 342.2 MB, free: 4.516 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00205/0.1255, allocations: 0.7645 MB / 343 MB, free: 3.723 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005424/0.126, allocations: 0.7597 MB / 343.8 MB, free: 2.938 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001429/0.1262, allocations: 26.28 kB / 343.8 MB, free: 2.91 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.1262, allocations: 19.44 kB / 343.8 MB, free: 2.891 MB / 286.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1262, allocations: 3.938 kB / 343.8 MB, free: 2.887 MB / 286.1 MB Notification: Performance of Templates: time 0.008061/0.1343, allocations: 2.944 MB / 346.7 MB, free: 15.95 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches