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.001218/0.001218, allocations: 103.8 kB / 17.16 MB, free: 6.316 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.001322/0.001322, allocations: 190 kB / 18.07 MB, free: 5.414 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.563/1.563, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001829/0.001829, allocations: 47.92 kB / 280 MB, free: 3.582 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1018, allocations: 46.63 MB / 326.6 MB, free: 4.895 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004367/0.1062, allocations: 2.873 MB / 329.5 MB, free: 1.996 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1078, allocations: 0.7604 MB / 330.2 MB, free: 1.227 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.1081, allocations: 4 kB / 330.2 MB, free: 1.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.1083, allocations: 39.69 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.1086, allocations: 75.39 kB / 330.3 MB, free: 1.109 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004086/0.109, allocations: 83.92 kB / 330.4 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004304/0.1095, allocations: 362.3 kB / 330.8 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002428/0.1097, allocations: 99.92 kB / 330.9 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001949/0.1099, allocations: 135.5 kB / 331 MB, free: 452 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002279/0.1101, allocations: 143.4 kB / 331.2 MB, free: 308 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.129e-05/0.1102, allocations: 20 kB / 331.2 MB, free: 288 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.846e-05/0.1103, allocations: 20 kB / 331.2 MB, free: 268 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.736e-05/0.1104, allocations: 55.77 kB / 331.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001919/0.1106, allocations: 159.2 kB / 331.4 MB, free: 52 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003978/0.111, allocations: 343 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.111, allocations: 0 / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.111, allocations: 4 kB / 331.7 MB, free: 15.71 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.567e-05/0.111, allocations: 4 kB / 331.7 MB, free: 15.71 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.001301/0.1123, allocations: 0.5979 MB / 332.3 MB, free: 15.06 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.1124, allocations: 8.031 kB / 332.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.1125, allocations: 36.56 kB / 332.4 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.1129, allocations: 276.3 kB / 332.7 MB, free: 14.71 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.949e-05/0.113, allocations: 72.62 kB / 332.7 MB, free: 14.62 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.698e-05/0.1131, allocations: 28.38 kB / 332.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005418/0.1136, allocations: 305.8 kB / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.568e-05/0.1137, allocations: 0 / 333.1 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.818e-05/0.1137, allocations: 16 kB / 333.1 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.1137, allocations: 8 kB / 333.1 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.1141, allocations: 194.1 kB / 333.3 MB, free: 14.07 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001898/0.116, allocations: 1.135 MB / 334.4 MB, free: 12.85 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003122/0.1163, allocations: 150.6 kB / 334.5 MB, free: 12.7 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001319/0.1165, allocations: 80.83 kB / 334.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1165, allocations: 4 kB / 334.6 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003479/0.1169, allocations: 157.8 kB / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1169, allocations: 0 / 334.8 MB, free: 12.43 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.00103/0.1179, allocations: 387.1 kB / 335.2 MB, free: 12.03 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.839e-05/0.118, allocations: 106.8 kB / 335.3 MB, free: 11.9 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002249/0.1182, allocations: 221 kB / 335.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.1183, allocations: 33.7 kB / 335.5 MB, free: 11.63 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001274/0.1184, allocations: 184.1 kB / 335.7 MB, free: 11.45 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.202e-05/0.1185, allocations: 71 kB / 335.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.1186, allocations: 53.7 kB / 335.8 MB, free: 11.32 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1188, allocations: 338.8 kB / 336.1 MB, free: 10.98 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.1189, allocations: 67.97 kB / 336.2 MB, free: 10.91 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001912/0.1191, allocations: 140.6 kB / 336.4 MB, free: 10.75 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.1194, allocations: 192.2 kB / 336.5 MB, free: 10.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.1194, allocations: 4 kB / 336.5 MB, free: 10.53 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004353/0.1198, allocations: 267.7 kB / 336.8 MB, free: 10.26 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1199, allocations: 8 kB / 336.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.1199, allocations: 0 / 336.8 MB, free: 10.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002799/0.1202, allocations: 61.03 kB / 336.9 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.1204, allocations: 55.91 kB / 336.9 MB, free: 10.14 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00125/0.1216, allocations: 1.404 MB / 338.3 MB, free: 8.602 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1219, allocations: 35.72 kB / 338.4 MB, free: 8.566 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.1219, allocations: 15.98 kB / 338.4 MB, free: 8.551 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.0001549/0.1221, allocations: 153.7 kB / 338.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.862e-05/0.1221, allocations: 23.75 kB / 338.6 MB, free: 8.367 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.759e-05/0.1222, allocations: 26.17 kB / 338.6 MB, free: 8.344 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.1222, allocations: 4 kB / 338.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.1222, allocations: 0 / 338.6 MB, free: 8.34 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.105e-06/0.1222, allocations: 3.938 kB / 338.6 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.1225, allocations: 317.4 kB / 338.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.1225, allocations: 0 / 338.9 MB, free: 7.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.1227, allocations: 35.86 kB / 338.9 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001828/0.1229, allocations: 56.81 kB / 339 MB, free: 7.883 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.228e-05/0.1229, allocations: 11.92 kB / 339 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001064/0.124, allocations: 1.315 MB / 340.3 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.124, allocations: 4.031 kB / 340.3 MB, free: 6.414 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006396/0.1247, allocations: 338.2 kB / 340.7 MB, free: 6.062 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1248, allocations: 116.8 kB / 340.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.408e-05/0.1248, allocations: 0 / 340.8 MB, free: 5.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.125, allocations: 19.98 kB / 340.8 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.1251, allocations: 27.95 kB / 340.8 MB, free: 5.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.1251, allocations: 11.92 kB / 340.8 MB, free: 5.871 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.1253, allocations: 160.5 kB / 341 MB, free: 5.715 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1253, allocations: 7.938 kB / 341 MB, free: 5.707 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.00037/0.1257, allocations: 75.84 kB / 341.1 MB, free: 5.633 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.0001427/0.1258, allocations: 107.2 kB / 341.2 MB, free: 5.52 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0005558/0.1264, allocations: 286.5 kB / 341.4 MB, free: 5.227 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1264, allocations: 0 / 341.4 MB, free: 5.227 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.1267, allocations: 191 kB / 341.6 MB, free: 5.027 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003401/0.127, allocations: 40.34 kB / 341.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001655/0.1287, allocations: 0.7595 MB / 342.4 MB, free: 4.203 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003198/0.129, allocations: 0.756 MB / 343.2 MB, free: 3.422 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.1292, allocations: 22.3 kB / 343.2 MB, free: 3.398 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.877e-05/0.1292, allocations: 19.44 kB / 343.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1292, allocations: 0 / 343.2 MB, free: 3.379 MB / 286.1 MB Notification: Performance of Templates: time 0.00651/0.1357, allocations: 2.788 MB / 346 MB, free: 0.5977 MB / 286.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