Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_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 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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001112/0.001112, allocations: 94.14 kB / 16.3 MB, free: 5.996 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.001044/0.001044, allocations: 179 kB / 17.2 MB, free: 5.914 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.453/1.453, allocations: 223.2 MB / 241.1 MB, free: 5.359 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002545/0.0002545, allocations: 7.219 kB / 300.7 MB, free: 6.418 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1193, allocations: 50.42 MB / 351.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.002994/0.1223, allocations: 2.526 MB / 353.7 MB, free: 9.262 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.1236, allocations: 0.7328 MB / 354.4 MB, free: 8.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001598/0.1238, allocations: 7.938 kB / 354.4 MB, free: 8.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1239, allocations: 51.67 kB / 354.5 MB, free: 8.465 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002179/0.1242, allocations: 115.7 kB / 354.6 MB, free: 8.352 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003315/0.1245, allocations: 83.84 kB / 354.7 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003541/0.1249, allocations: 279.4 kB / 354.9 MB, free: 7.996 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.1251, allocations: 110.8 kB / 355 MB, free: 7.883 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1253, allocations: 135.5 kB / 355.2 MB, free: 7.75 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002061/0.1255, allocations: 151.4 kB / 355.3 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.008e-05/0.1255, allocations: 20 kB / 355.3 MB, free: 7.582 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.848e-05/0.1256, allocations: 20 kB / 355.4 MB, free: 7.562 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.166e-05/0.1257, allocations: 63.69 kB / 355.4 MB, free: 7.5 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.169e-05/0.1258, allocations: 89.52 kB / 355.5 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.1261, allocations: 303.1 kB / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.1261, allocations: 0 / 355.8 MB, free: 7.109 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.1261, allocations: 4 kB / 355.8 MB, free: 7.105 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1261, allocations: 0 / 355.8 MB, free: 7.105 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.001053/0.1271, allocations: 0.5963 MB / 356.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1272, allocations: 8.031 kB / 356.4 MB, free: 6.449 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001008/0.1273, allocations: 43.53 kB / 356.5 MB, free: 6.406 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003465/0.1277, allocations: 276 kB / 356.7 MB, free: 6.094 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.088e-05/0.1278, allocations: 76 kB / 356.8 MB, free: 6.008 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/0.1278, allocations: 40 kB / 356.8 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005391/0.1284, allocations: 338.7 kB / 357.2 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.28e-05/0.1284, allocations: 0 / 357.2 MB, free: 5.625 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.002e-05/0.1284, allocations: 15.95 kB / 357.2 MB, free: 5.609 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.1285, allocations: 8 kB / 357.2 MB, free: 5.602 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004241/0.1289, allocations: 222.5 kB / 357.4 MB, free: 5.379 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002141/0.131, allocations: 1.383 MB / 358.8 MB, free: 3.895 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004172/0.1315, allocations: 170.6 kB / 359 MB, free: 3.719 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.814e-05/0.1315, allocations: 4 kB / 359 MB, free: 3.715 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003899/0.1319, allocations: 165.8 kB / 359.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of pre-optimization done (n=21): time 1.784e-06/0.1319, allocations: 0 / 359.1 MB, free: 3.535 MB / 286.1 MB Notification: Performance of matching and sorting (n=21): time 0.001179/0.1331, allocations: 419.2 kB / 359.5 MB, free: 3.102 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000103/0.1332, allocations: 110.8 kB / 359.6 MB, free: 2.969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003115/0.1335, allocations: 262.5 kB / 359.9 MB, free: 2.711 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.304e-05/0.1336, allocations: 37.7 kB / 359.9 MB, free: 2.668 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001668/0.1337, allocations: 203.9 kB / 360.1 MB, free: 2.465 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.925e-05/0.1338, allocations: 71 kB / 360.2 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.403e-05/0.1338, allocations: 4 kB / 360.2 MB, free: 2.391 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.134, allocations: 338.8 kB / 360.5 MB, free: 2.051 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001542/0.1342, allocations: 84.55 kB / 360.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002115/0.1344, allocations: 169.5 kB / 360.8 MB, free: 1.758 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.1346, allocations: 101.1 kB / 360.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.1346, allocations: 0 / 360.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006435/0.1353, allocations: 340.5 kB / 361.2 MB, free: 1.32 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.1353, allocations: 4 kB / 361.2 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1353, allocations: 8.297 kB / 361.2 MB, free: 1.309 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002723/0.1356, allocations: 60.81 kB / 361.3 MB, free: 1.246 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002553/0.1358, allocations: 67.91 kB / 361.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.1374, allocations: 1.412 MB / 362.8 MB, free: 15.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002806/0.1377, allocations: 47.73 kB / 362.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.1377, allocations: 12 kB / 362.8 MB, free: 15.58 MB / 302.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 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002012/0.1379, allocations: 149.7 kB / 363 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.205e-05/0.138, allocations: 35.61 kB / 363 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.794e-05/0.138, allocations: 30.19 kB / 363 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.88e-06/0.138, allocations: 4 kB / 363 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.138, allocations: 0 / 363 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/0.1381, allocations: 3.984 kB / 363 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004638/0.1385, allocations: 333.4 kB / 363.4 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.1386, allocations: 11.89 kB / 363.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002247/0.1388, allocations: 43.91 kB / 363.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001826/0.139, allocations: 52.81 kB / 363.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.139, allocations: 8 kB / 363.5 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.1403, allocations: 1.335 MB / 364.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.1403, allocations: 0 / 364.8 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007006/0.141, allocations: 360.1 kB / 365.2 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001217/0.1411, allocations: 108.8 kB / 365.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.825e-05/0.1412, allocations: 7.984 kB / 365.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.1413, allocations: 24.05 kB / 365.3 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.772e-05/0.1414, allocations: 27.95 kB / 365.3 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.763e-05/0.1415, allocations: 11.98 kB / 365.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001718/0.1416, allocations: 178 kB / 365.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1417, allocations: 0 / 365.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004018/0.1421, allocations: 91.69 kB / 365.6 MB, free: 12.56 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001483/0.1422, allocations: 115.1 kB / 365.7 MB, free: 12.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006092/0.1428, allocations: 314.4 kB / 366 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.1428, allocations: 3.938 kB / 366 MB, free: 12.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002854/0.1431, allocations: 195.3 kB / 366.2 MB, free: 11.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002449/0.1434, allocations: 40.36 kB / 366.3 MB, free: 11.87 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001554/0.145, allocations: 0.8304 MB / 367.1 MB, free: 11.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1453, allocations: 0.7794 MB / 367.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.1454, allocations: 26.28 kB / 367.9 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.704e-05/0.1455, allocations: 23.42 kB / 367.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1455, allocations: 7.938 kB / 367.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Templates: time 0.006582/0.1521, allocations: 2.676 MB / 370.6 MB, free: 7.496 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches