Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 114.4 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.001324/0.001324, allocations: 193.3 kB / 18.19 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.393/1.393, allocations: 205.1 MB / 224.1 MB, free: 12.44 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.001643/0.001643, allocations: 48.39 kB / 280.2 MB, free: 3.504 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1155, allocations: 46.63 MB / 326.8 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004557/0.1201, allocations: 3.134 MB / 329.9 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001536/0.1217, allocations: 0.776 MB / 330.7 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003136/0.122, allocations: 11.94 kB / 330.7 MB, free: 0.8398 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002501/0.1223, allocations: 39.69 kB / 330.7 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.1226, allocations: 87.3 kB / 330.8 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.123, allocations: 91.86 kB / 330.9 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005425/0.1236, allocations: 426.1 kB / 331.3 MB, free: 212 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002805/0.1239, allocations: 139.7 kB / 331.5 MB, free: 72 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003028/0.1242, allocations: 155.4 kB / 331.6 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000296/0.1245, allocations: 171.2 kB / 331.8 MB, free: 15.75 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.669e-05/0.1246, allocations: 35.94 kB / 331.8 MB, free: 15.71 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.091e-05/0.1247, allocations: 36 kB / 331.9 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.15e-05/0.1248, allocations: 87.73 kB / 331.9 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.125, allocations: 187.1 kB / 332.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004251/0.1254, allocations: 414.8 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1254, allocations: 0 / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1254, allocations: 4 kB / 332.5 MB, free: 15 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.892e-05/0.1254, allocations: 0 / 332.5 MB, free: 15 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001187/0.1266, allocations: 0.647 MB / 333.2 MB, free: 14.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.1267, allocations: 15.89 kB / 333.2 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.815e-05/0.1268, allocations: 40.56 kB / 333.2 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003623/0.1272, allocations: 285.1 kB / 333.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.755e-05/0.1273, allocations: 80.62 kB / 333.6 MB, free: 13.84 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.515e-05/0.1273, allocations: 28.38 kB / 333.6 MB, free: 13.81 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.1279, allocations: 342.8 kB / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.373e-05/0.1279, allocations: 0 / 334 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.91e-05/0.128, allocations: 20 kB / 334 MB, free: 13.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.146e-05/0.128, allocations: 8 kB / 334 MB, free: 13.43 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000464/0.1285, allocations: 218.5 kB / 334.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002039/0.1305, allocations: 1.372 MB / 335.6 MB, free: 11.75 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.1308, allocations: 158.6 kB / 335.7 MB, free: 11.58 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.131, allocations: 92.77 kB / 335.8 MB, free: 11.49 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.131, allocations: 3.984 kB / 335.8 MB, free: 11.48 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003524/0.1314, allocations: 161.8 kB / 336 MB, free: 11.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.593e-06/0.1314, allocations: 0 / 336 MB, free: 11.3 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001231/0.1326, allocations: 399.1 kB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.1328, allocations: 110.8 kB / 336.5 MB, free: 10.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.1331, allocations: 258.6 kB / 336.7 MB, free: 10.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.368e-05/0.1331, allocations: 33.7 kB / 336.8 MB, free: 10.45 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001672/0.1333, allocations: 203.9 kB / 337 MB, free: 10.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.117e-05/0.1334, allocations: 71 kB / 337 MB, free: 10.18 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.1335, allocations: 58.03 kB / 337.1 MB, free: 10.12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.1337, allocations: 338.8 kB / 337.4 MB, free: 9.777 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001892/0.1339, allocations: 84.61 kB / 337.5 MB, free: 9.695 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002404/0.1341, allocations: 173.5 kB / 337.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.1345, allocations: 247.5 kB / 337.9 MB, free: 9.207 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.388e-06/0.1345, allocations: 0 / 337.9 MB, free: 9.207 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008171/0.1354, allocations: 343.5 kB / 338.2 MB, free: 8.863 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.1354, allocations: 8 kB / 338.3 MB, free: 8.855 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.916e-05/0.1354, allocations: 7.984 kB / 338.3 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003938/0.1358, allocations: 53 kB / 338.3 MB, free: 8.793 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003182/0.1362, allocations: 67.91 kB / 338.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0019/0.1381, allocations: 1.572 MB / 340 MB, free: 7.016 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003534/0.1385, allocations: 47.77 kB / 340 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.285e-05/0.1385, allocations: 15.94 kB / 340 MB, free: 6.953 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0002272/0.1387, allocations: 156.8 kB / 340.2 MB, free: 6.793 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.489e-05/0.1388, allocations: 23.72 kB / 340.2 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.259e-05/0.1389, allocations: 30.11 kB / 340.2 MB, free: 6.746 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.1389, allocations: 4 kB / 340.2 MB, free: 6.742 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.77e-06/0.1389, allocations: 4 kB / 340.2 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.1389, allocations: 0 / 340.2 MB, free: 6.738 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004019/0.1393, allocations: 341.4 kB / 340.6 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.1393, allocations: 0 / 340.6 MB, free: 6.355 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.1395, allocations: 39.92 kB / 340.6 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002045/0.1397, allocations: 52.75 kB / 340.7 MB, free: 6.262 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.1398, allocations: 7.984 kB / 340.7 MB, free: 6.254 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001266/0.141, allocations: 1.43 MB / 342.1 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1411, allocations: 0 / 342.1 MB, free: 4.68 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007262/0.1418, allocations: 342.2 kB / 342.4 MB, free: 4.324 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001424/0.142, allocations: 124.7 kB / 342.5 MB, free: 4.184 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.351e-05/0.142, allocations: 4 kB / 342.6 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001885/0.1422, allocations: 23.97 kB / 342.6 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.1423, allocations: 27.91 kB / 342.6 MB, free: 4.129 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.592e-05/0.1423, allocations: 7.984 kB / 342.6 MB, free: 4.121 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001629/0.1425, allocations: 182 kB / 342.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1425, allocations: 0 / 342.8 MB, free: 3.941 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000418/0.1429, allocations: 91.91 kB / 342.9 MB, free: 3.852 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001482/0.1431, allocations: 107.2 kB / 343 MB, free: 3.738 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007228/0.1438, allocations: 318.3 kB / 343.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1438, allocations: 0.6875 kB / 343.3 MB, free: 3.414 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000322/0.1442, allocations: 206.5 kB / 343.5 MB, free: 3.199 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.1445, allocations: 36.48 kB / 343.5 MB, free: 3.164 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.1461, allocations: 0.7972 MB / 344.3 MB, free: 2.34 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003111/0.1465, allocations: 0.7714 MB / 345.1 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001297/0.1466, allocations: 30.27 kB / 345.1 MB, free: 1.512 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.973e-05/0.1467, allocations: 19.44 kB / 345.1 MB, free: 1.492 MB / 286.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1467, allocations: 4 kB / 345.2 MB, free: 1.488 MB / 286.1 MB Notification: Performance of Templates: time 0.006828/0.1535, allocations: 2.976 MB / 348.1 MB, free: 14.51 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches