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.001229/0.001229, allocations: 108.4 kB / 18.34 MB, free: 4.676 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.001166/0.001166, allocations: 186.9 kB / 19.28 MB, free: 3.75 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.744/1.744, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001197/0.001197, allocations: 47.94 kB / 282.1 MB, free: 2.457 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1159/0.1171, allocations: 46.63 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004642/0.1218, allocations: 3.104 MB / 331.8 MB, free: 0.625 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.1236, allocations: 0.7837 MB / 332.6 MB, free: 15.83 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001684/0.1238, allocations: 11.94 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002022/0.124, allocations: 55.42 kB / 332.7 MB, free: 15.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001978/0.1242, allocations: 103 kB / 332.8 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003709/0.1246, allocations: 107.8 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004372/0.125, allocations: 426.1 kB / 333.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002618/0.1253, allocations: 135.7 kB / 333.4 MB, free: 15.01 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000205/0.1255, allocations: 155.4 kB / 333.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.1257, allocations: 175.3 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.293e-05/0.1258, allocations: 40 kB / 333.8 MB, free: 14.64 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.429e-05/0.1259, allocations: 39.94 kB / 333.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.862e-05/0.1259, allocations: 75.77 kB / 333.9 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.1261, allocations: 183.1 kB / 334.1 MB, free: 14.35 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.1266, allocations: 430.5 kB / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1266, allocations: 0 / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.1266, allocations: 0 / 334.5 MB, free: 13.93 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.1266, allocations: 0 / 334.5 MB, free: 13.93 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.001104/0.1277, allocations: 0.647 MB / 335.1 MB, free: 13.23 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.1278, allocations: 11.89 kB / 335.2 MB, free: 13.22 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.1e-05/0.1278, allocations: 36.56 kB / 335.2 MB, free: 13.18 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004334/0.1283, allocations: 289.1 kB / 335.5 MB, free: 12.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.379e-05/0.1284, allocations: 84.62 kB / 335.6 MB, free: 12.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.1285, allocations: 28.38 kB / 335.6 MB, free: 12.74 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005781/0.129, allocations: 342.8 kB / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.1291, allocations: 0 / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.018e-05/0.1291, allocations: 16 kB / 335.9 MB, free: 12.37 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.1291, allocations: 8 kB / 335.9 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004425/0.1296, allocations: 222.5 kB / 336.2 MB, free: 12.14 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001915/0.1315, allocations: 1.352 MB / 337.5 MB, free: 10.69 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003471/0.1319, allocations: 178.5 kB / 337.7 MB, free: 10.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000169/0.1321, allocations: 88.77 kB / 337.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.852e-05/0.1321, allocations: 3.984 kB / 337.8 MB, free: 10.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/0.1324, allocations: 157.9 kB / 337.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.473e-06/0.1324, allocations: 3.938 kB / 337.9 MB, free: 10.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001129/0.1335, allocations: 407.1 kB / 338.3 MB, free: 9.805 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.894e-05/0.1336, allocations: 110.8 kB / 338.4 MB, free: 9.672 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002994/0.1339, allocations: 258.6 kB / 338.7 MB, free: 9.41 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.431e-05/0.134, allocations: 37.7 kB / 338.7 MB, free: 9.367 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001465/0.1341, allocations: 203.9 kB / 338.9 MB, free: 9.164 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.367e-05/0.1342, allocations: 63.02 kB / 339 MB, free: 9.102 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.1343, allocations: 66.02 kB / 339.1 MB, free: 9.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001402/0.1345, allocations: 334.8 kB / 339.4 MB, free: 8.695 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.1346, allocations: 76.62 kB / 339.5 MB, free: 8.621 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002227/0.1348, allocations: 185.4 kB / 339.6 MB, free: 8.398 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003619/0.1352, allocations: 235.6 kB / 339.9 MB, free: 8.133 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1352, allocations: 0 / 339.9 MB, free: 8.133 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006565/0.1359, allocations: 343.6 kB / 340.2 MB, free: 7.789 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.1359, allocations: 8 kB / 340.2 MB, free: 7.781 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/0.1359, allocations: 4 kB / 340.2 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003057/0.1363, allocations: 52.75 kB / 340.3 MB, free: 7.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.1365, allocations: 68 kB / 340.3 MB, free: 7.656 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.138, allocations: 1.564 MB / 341.9 MB, free: 5.953 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.1383, allocations: 43.67 kB / 341.9 MB, free: 5.91 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.1383, allocations: 19.92 kB / 342 MB, free: 5.891 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.0001838/0.1385, allocations: 153.7 kB / 342.1 MB, free: 5.73 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.961e-05/0.1386, allocations: 27.81 kB / 342.1 MB, free: 5.703 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.468e-05/0.1386, allocations: 30.11 kB / 342.2 MB, free: 5.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.447e-06/0.1386, allocations: 4 kB / 342.2 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1386, allocations: 0 / 342.2 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.1387, allocations: 0 / 342.2 MB, free: 5.676 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003675/0.139, allocations: 345.3 kB / 342.5 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.139, allocations: 0 / 342.5 MB, free: 5.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001911/0.1392, allocations: 35.92 kB / 342.5 MB, free: 5.254 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001818/0.1394, allocations: 56.75 kB / 342.6 MB, free: 5.195 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.801e-05/0.1395, allocations: 4 kB / 342.6 MB, free: 5.191 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001177/0.1406, allocations: 1.426 MB / 344 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1407, allocations: 0 / 344 MB, free: 3.621 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006983/0.1414, allocations: 354.2 kB / 344.4 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001421/0.1415, allocations: 120.7 kB / 344.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.484e-05/0.1416, allocations: 7.938 kB / 344.5 MB, free: 3.109 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.1417, allocations: 19.98 kB / 344.5 MB, free: 3.09 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.1419, allocations: 31.95 kB / 344.5 MB, free: 3.059 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.711e-05/0.1419, allocations: 12 kB / 344.6 MB, free: 3.047 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001937/0.1421, allocations: 182 kB / 344.7 MB, free: 2.871 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1421, allocations: 0 / 344.7 MB, free: 2.871 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004599/0.1426, allocations: 91.78 kB / 344.8 MB, free: 2.781 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.0002329/0.1428, allocations: 99.25 kB / 344.9 MB, free: 2.676 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007609/0.1436, allocations: 322.7 kB / 345.2 MB, free: 2.348 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.1436, allocations: 0 / 345.2 MB, free: 2.348 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.1439, allocations: 198.5 kB / 345.4 MB, free: 2.141 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003117/0.1443, allocations: 32.48 kB / 345.5 MB, free: 2.109 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001749/0.146, allocations: 0.6774 MB / 346.1 MB, free: 1.406 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.1465, allocations: 0.7675 MB / 346.9 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001204/0.1466, allocations: 26.28 kB / 346.9 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.982e-05/0.1467, allocations: 31.44 kB / 347 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1467, allocations: 0 / 347 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of Templates: time 0.007648/0.1544, allocations: 3.099 MB / 350.1 MB, free: 13.46 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches