Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001494/0.001494, allocations: 108 kB / 16.92 MB, free: 6.332 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.001695/0.001695, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.509/1.509, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 59.53 kB / 300.6 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1027, allocations: 49.43 MB / 350 MB, free: 4.445 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004059/0.1068, allocations: 2.87 MB / 352.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001096/0.1079, allocations: 0.7283 MB / 353.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.108, allocations: 8 kB / 353.6 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001527/0.1082, allocations: 51.5 kB / 353.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001539/0.1084, allocations: 95.11 kB / 353.8 MB, free: 0.6641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003112/0.1087, allocations: 99.83 kB / 353.9 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/0.109, allocations: 374.3 kB / 354.3 MB, free: 204 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002326/0.1093, allocations: 119.2 kB / 354.4 MB, free: 84 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.1094, allocations: 139.6 kB / 354.5 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002289/0.1097, allocations: 155.3 kB / 354.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.299e-05/0.1097, allocations: 28 kB / 354.7 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.868e-05/0.1098, allocations: 32 kB / 354.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.1099, allocations: 71.67 kB / 354.8 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001725/0.1101, allocations: 163.2 kB / 354.9 MB, free: 15.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003777/0.1105, allocations: 355 kB / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.1105, allocations: 0 / 355.3 MB, free: 15.16 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.1105, allocations: 4 kB / 355.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.636e-06/0.1105, allocations: 4 kB / 355.3 MB, free: 15.15 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00108/0.1116, allocations: 0.6018 MB / 355.9 MB, free: 14.5 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.1116, allocations: 8.031 kB / 355.9 MB, free: 14.49 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.962e-05/0.1117, allocations: 40.56 kB / 356 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.112, allocations: 268.8 kB / 356.2 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.239e-05/0.1121, allocations: 80.62 kB / 356.3 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.144e-05/0.1122, allocations: 32.31 kB / 356.3 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00044/0.1126, allocations: 297.9 kB / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.1126, allocations: 0 / 356.6 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.766e-05/0.1127, allocations: 19.94 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.516e-06/0.1127, allocations: 8 kB / 356.6 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003178/0.113, allocations: 190.2 kB / 356.8 MB, free: 13.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.1146, allocations: 1.127 MB / 358 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.1149, allocations: 158.5 kB / 358.1 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001312/0.1151, allocations: 80.83 kB / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.867e-05/0.1151, allocations: 4 kB / 358.2 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003613/0.1155, allocations: 160.8 kB / 358.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1155, allocations: 0 / 358.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001058/0.1166, allocations: 383.2 kB / 358.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.816e-05/0.1166, allocations: 110.8 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.1168, allocations: 221 kB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.482e-05/0.1169, allocations: 33.7 kB / 359.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.117, allocations: 184.1 kB / 359.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.422e-05/0.1171, allocations: 74.94 kB / 359.3 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.901e-05/0.1171, allocations: 53.7 kB / 359.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001066/0.1173, allocations: 338.8 kB / 359.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.1174, allocations: 67.97 kB / 359.8 MB, free: 10.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.1176, allocations: 144.6 kB / 359.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.1178, allocations: 190 kB / 360.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.1178, allocations: 0 / 360.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004007/0.1182, allocations: 272.3 kB / 360.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.1182, allocations: 8 kB / 360.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.1183, allocations: 0 / 360.4 MB, free: 9.684 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.1185, allocations: 61.03 kB / 360.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.1188, allocations: 51.91 kB / 360.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001272/0.12, allocations: 1.56 MB / 362.1 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00022/0.1203, allocations: 47.73 kB / 362.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.951e-05/0.1203, allocations: 12 kB / 362.1 MB, free: 7.812 MB / 302.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.0001443/0.1204, allocations: 149.7 kB / 362.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.567e-05/0.1205, allocations: 23.72 kB / 362.3 MB, free: 7.633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.555e-05/0.1205, allocations: 30.17 kB / 362.3 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1206, allocations: 4 kB / 362.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.1206, allocations: 0 / 362.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1206, allocations: 3.984 kB / 362.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.1209, allocations: 325.4 kB / 362.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1209, allocations: 4 kB / 362.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001524/0.121, allocations: 27.98 kB / 362.7 MB, free: 7.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001761/0.1212, allocations: 56.75 kB / 362.7 MB, free: 7.145 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.1212, allocations: 8 kB / 362.7 MB, free: 7.137 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001055/0.1223, allocations: 1.414 MB / 364.1 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1223, allocations: 3.938 kB / 364.2 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005951/0.1229, allocations: 323.1 kB / 364.5 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.795e-05/0.123, allocations: 116.8 kB / 364.6 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.1231, allocations: 11.98 kB / 364.6 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001624/0.1232, allocations: 15.98 kB / 364.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.728e-05/0.1233, allocations: 27.95 kB / 364.6 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1234, allocations: 8 kB / 364.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001298/0.1235, allocations: 160.5 kB / 364.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1235, allocations: 0 / 364.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003553/0.1239, allocations: 79.83 kB / 364.9 MB, free: 4.809 MB / 302.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.0001318/0.124, allocations: 118 kB / 365 MB, free: 4.688 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005389/0.1245, allocations: 300.4 kB / 365.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1246, allocations: 0 / 365.3 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002797/0.1248, allocations: 190.6 kB / 365.5 MB, free: 4.184 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.1251, allocations: 40.23 kB / 365.5 MB, free: 4.148 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.1267, allocations: 0.6668 MB / 366.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002912/0.127, allocations: 0.7636 MB / 366.9 MB, free: 2.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.671e-05/0.1271, allocations: 18.3 kB / 367 MB, free: 2.645 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.755e-05/0.1272, allocations: 19.44 kB / 367 MB, free: 2.625 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1272, allocations: 4 kB / 367 MB, free: 2.621 MB / 302.1 MB Notification: Performance of Templates: time 0.2209/0.3481, allocations: 3.035 MB / 370 MB, free: 25.19 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches