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.001318/0.001319, allocations: 108.4 kB / 18.36 MB, free: 4.77 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.001215/0.001215, allocations: 191 kB / 19.29 MB, free: 3.848 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.58/1.58, allocations: 205.1 MB / 225.2 MB, free: 12.31 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.001208/0.001208, allocations: 55.91 kB / 282.1 MB, free: 2.477 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1078, allocations: 46.64 MB / 328.7 MB, free: 3.766 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004221/0.112, allocations: 3.101 MB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1134, allocations: 0.7798 MB / 332.6 MB, free: 15.85 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001446/0.1136, allocations: 8 kB / 332.6 MB, free: 15.84 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001808/0.1138, allocations: 55.44 kB / 332.7 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.114, allocations: 103 kB / 332.8 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.1144, allocations: 119.7 kB / 332.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003893/0.1148, allocations: 418.1 kB / 333.3 MB, free: 15.16 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002504/0.1151, allocations: 135.7 kB / 333.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001927/0.1153, allocations: 155.4 kB / 333.6 MB, free: 14.88 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.1155, allocations: 179.2 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.025e-05/0.1155, allocations: 32 kB / 333.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.1156, allocations: 39.94 kB / 333.8 MB, free: 14.63 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.493e-05/0.1157, allocations: 83.73 kB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.1158, allocations: 183.1 kB / 334.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.1163, allocations: 426.5 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1163, allocations: 0 / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1163, allocations: 0 / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.1163, allocations: 0 / 334.5 MB, free: 13.95 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.001065/0.1174, allocations: 0.647 MB / 335.2 MB, free: 13.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.1174, allocations: 11.89 kB / 335.2 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.065e-05/0.1175, allocations: 44.55 kB / 335.2 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004275/0.118, allocations: 285.1 kB / 335.5 MB, free: 12.88 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.479e-05/0.1181, allocations: 84.62 kB / 335.6 MB, free: 12.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.403e-05/0.1181, allocations: 28.38 kB / 335.6 MB, free: 12.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005521/0.1187, allocations: 338.8 kB / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1187, allocations: 0 / 335.9 MB, free: 12.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.527e-05/0.1187, allocations: 16 kB / 335.9 MB, free: 12.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.1188, allocations: 8 kB / 336 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004082/0.1192, allocations: 222.5 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.121, allocations: 1.36 MB / 337.5 MB, free: 10.7 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003203/0.1213, allocations: 162.6 kB / 337.7 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001602/0.1215, allocations: 92.77 kB / 337.8 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.1215, allocations: 0 / 337.8 MB, free: 10.44 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002674/0.1218, allocations: 165.8 kB / 337.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 3.015e-06/0.1218, allocations: 4 kB / 337.9 MB, free: 10.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001058/0.1229, allocations: 391.2 kB / 338.3 MB, free: 9.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.123, allocations: 114.7 kB / 338.4 MB, free: 9.703 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.1232, allocations: 266.6 kB / 338.7 MB, free: 9.434 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.226e-05/0.1233, allocations: 33.7 kB / 338.7 MB, free: 9.395 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.1234, allocations: 203.9 kB / 338.9 MB, free: 9.191 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.973e-05/0.1235, allocations: 75 kB / 339 MB, free: 9.117 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.54e-05/0.1236, allocations: 57.97 kB / 339.1 MB, free: 9.055 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001262/0.1237, allocations: 338.8 kB / 339.4 MB, free: 8.715 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.1239, allocations: 80.61 kB / 339.5 MB, free: 8.637 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002133/0.1241, allocations: 173.5 kB / 339.6 MB, free: 8.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003361/0.1245, allocations: 243.5 kB / 339.9 MB, free: 8.152 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.487e-06/0.1245, allocations: 0 / 339.9 MB, free: 8.152 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006547/0.1251, allocations: 347.6 kB / 340.2 MB, free: 7.805 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1252, allocations: 4 kB / 340.2 MB, free: 7.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1252, allocations: 7.984 kB / 340.2 MB, free: 7.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002552/0.1254, allocations: 48.83 kB / 340.3 MB, free: 7.742 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002562/0.1257, allocations: 68.06 kB / 340.3 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.127, allocations: 1.568 MB / 341.9 MB, free: 5.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002493/0.1273, allocations: 43.7 kB / 342 MB, free: 5.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.361e-05/0.1273, allocations: 15.94 kB / 342 MB, free: 5.91 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.0001513/0.1274, allocations: 157.8 kB / 342.1 MB, free: 5.746 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.1275, allocations: 23.72 kB / 342.1 MB, free: 5.723 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.52e-05/0.1275, allocations: 34.11 kB / 342.2 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1275, allocations: 0 / 342.2 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.394e-06/0.1276, allocations: 0 / 342.2 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.1276, allocations: 0 / 342.2 MB, free: 5.695 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.1279, allocations: 337.4 kB / 342.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.1279, allocations: 0 / 342.5 MB, free: 5.316 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001961/0.1281, allocations: 35.98 kB / 342.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.1283, allocations: 60.69 kB / 342.6 MB, free: 5.219 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.18e-05/0.1283, allocations: 11.98 kB / 342.6 MB, free: 5.207 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001088/0.1294, allocations: 1.414 MB / 344 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1294, allocations: 0 / 344 MB, free: 3.648 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006606/0.1301, allocations: 350.2 kB / 344.4 MB, free: 3.285 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.1302, allocations: 124.7 kB / 344.5 MB, free: 3.145 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.825e-05/0.1303, allocations: 7.984 kB / 344.5 MB, free: 3.137 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001721/0.1304, allocations: 19.98 kB / 344.5 MB, free: 3.117 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.154e-05/0.1306, allocations: 35.95 kB / 344.6 MB, free: 3.082 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.742e-05/0.1306, allocations: 7.984 kB / 344.6 MB, free: 3.074 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001731/0.1308, allocations: 182 kB / 344.7 MB, free: 2.898 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1308, allocations: 3.938 kB / 344.7 MB, free: 2.895 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003822/0.1311, allocations: 87.84 kB / 344.8 MB, free: 2.809 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.0001251/0.1313, allocations: 115.1 kB / 344.9 MB, free: 2.688 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006003/0.1319, allocations: 310.4 kB / 345.2 MB, free: 2.371 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1319, allocations: 0 / 345.2 MB, free: 2.371 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.1322, allocations: 206.5 kB / 345.5 MB, free: 2.156 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000266/0.1325, allocations: 33.23 kB / 345.5 MB, free: 2.125 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.1339, allocations: 0.6644 MB / 346.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1342, allocations: 0.7714 MB / 346.9 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.76e-05/0.1343, allocations: 26.28 kB / 346.9 MB, free: 0.6094 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.778e-05/0.1344, allocations: 27.42 kB / 347 MB, free: 0.582 MB / 286.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1344, allocations: 3.938 kB / 347 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of Templates: time 0.006755/0.1411, allocations: 3.099 MB / 350.1 MB, free: 13.48 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 cvode -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