Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008915/0.0008915, allocations: 98.77 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008646/0.0008646, allocations: 207.2 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003318/0.0003319, allocations: 4 kB / 308.4 MB, free: 0.7734 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1252, allocations: 51.53 MB / 359.9 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004877/0.1302, allocations: 2.812 MB / 362.7 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00217/0.1324, allocations: 0.8102 MB / 363.5 MB, free: 9.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003607/0.1328, allocations: 4 kB / 363.5 MB, free: 9.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002311/0.133, allocations: 43.69 kB / 363.6 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000402/0.1334, allocations: 91.22 kB / 363.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005188/0.134, allocations: 103.8 kB / 363.8 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006753/0.1347, allocations: 394.2 kB / 364.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003386/0.135, allocations: 112.3 kB / 364.3 MB, free: 8.867 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003879/0.1354, allocations: 143.4 kB / 364.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003411/0.1358, allocations: 155.2 kB / 364.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.609e-05/0.1359, allocations: 24 kB / 364.6 MB, free: 8.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001194/0.136, allocations: 24 kB / 364.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001025/0.1361, allocations: 67.64 kB / 364.7 MB, free: 8.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002763/0.1364, allocations: 200.8 kB / 364.9 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004414/0.1369, allocations: 299.4 kB / 365.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.1369, allocations: 0 / 365.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1369, allocations: 0 / 365.2 MB, free: 7.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.684e-05/0.1369, allocations: 7.938 kB / 365.2 MB, free: 7.957 MB / 302.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.001456/0.1384, allocations: 0.6042 MB / 365.8 MB, free: 7.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/0.1384, allocations: 8.031 kB / 365.8 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002989/0.1388, allocations: 60.45 kB / 365.8 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004989/0.1393, allocations: 285.1 kB / 366.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001057/0.1394, allocations: 76.62 kB / 366.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.1395, allocations: 32.38 kB / 366.2 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008775/0.1404, allocations: 346.8 kB / 366.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1404, allocations: 7.984 kB / 366.6 MB, free: 6.438 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.434e-05/0.1405, allocations: 12 kB / 366.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.367e-05/0.1405, allocations: 11.94 kB / 366.6 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006927/0.1412, allocations: 222.5 kB / 366.8 MB, free: 6.195 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002796/0.144, allocations: 1.379 MB / 368.2 MB, free: 4.715 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.1445, allocations: 170.6 kB / 368.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002683/0.1448, allocations: 96.75 kB / 368.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.757e-05/0.1449, allocations: 4 kB / 368.5 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004368/0.1453, allocations: 157.8 kB / 368.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.845e-06/0.1453, allocations: 0 / 368.6 MB, free: 4.262 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001699/0.147, allocations: 415.2 kB / 369 MB, free: 3.828 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.585e-05/0.1471, allocations: 114.7 kB / 369.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004246/0.1476, allocations: 262.6 kB / 369.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.174e-05/0.1476, allocations: 33.7 kB / 369.4 MB, free: 3.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1478, allocations: 207.8 kB / 369.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.153e-05/0.1479, allocations: 71 kB / 369.7 MB, free: 3.109 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.772e-05/0.148, allocations: 37.7 kB / 369.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.1482, allocations: 338.8 kB / 370.1 MB, free: 2.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002653/0.1485, allocations: 80.62 kB / 370.1 MB, free: 2.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003587/0.1489, allocations: 173.5 kB / 370.3 MB, free: 2.434 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005626/0.1494, allocations: 245.4 kB / 370.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.1494, allocations: 0 / 370.6 MB, free: 2.16 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001119/0.1506, allocations: 352.4 kB / 370.9 MB, free: 1.809 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.87e-05/0.1506, allocations: 4 kB / 370.9 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.267e-05/0.1506, allocations: 4 kB / 370.9 MB, free: 1.801 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003722/0.151, allocations: 56.97 kB / 371 MB, free: 1.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.1514, allocations: 67.91 kB / 371 MB, free: 1.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.1533, allocations: 1.404 MB / 372.4 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004231/0.1537, allocations: 55.77 kB / 372.5 MB, free: 84 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.69e-05/0.1538, allocations: 12 kB / 372.5 MB, free: 72 kB / 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 (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.2032/0.357, allocations: 153.3 kB / 372.6 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.86e-05/0.3571, allocations: 34.19 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.026e-05/0.3572, allocations: 33.06 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3572, allocations: 2.156 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.3572, allocations: 5.359 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.3572, allocations: 0.7031 kB / 372.7 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.3576, allocations: 336.8 kB / 373 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.3577, allocations: 0.6094 kB / 373 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/0.3579, allocations: 38.05 kB / 373.1 MB, free: 18.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002359/0.3581, allocations: 56.61 kB / 373.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.291e-05/0.3582, allocations: 5.797 kB / 373.1 MB, free: 18.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009569/0.3591, allocations: 1.323 MB / 374.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3592, allocations: 0.5312 kB / 374.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00076/0.3599, allocations: 364.1 kB / 374.8 MB, free: 17.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.3601, allocations: 112.7 kB / 374.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.512e-05/0.3601, allocations: 9 kB / 374.9 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.3603, allocations: 23.28 kB / 375 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001093/0.3604, allocations: 27.34 kB / 375 MB, free: 17.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.3605, allocations: 4.438 kB / 375 MB, free: 17.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001894/0.3607, allocations: 190.5 kB / 375.2 MB, free: 17.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3607, allocations: 0 / 375.2 MB, free: 17.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000453/0.3611, allocations: 93.73 kB / 375.3 MB, free: 17.18 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 (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.000139/0.3613, allocations: 105.8 kB / 375.4 MB, free: 17.09 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006414/0.3619, allocations: 315.4 kB / 375.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3619, allocations: 0 / 375.7 MB, free: 16.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003269/0.3623, allocations: 204.6 kB / 375.9 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.3626, allocations: 35.92 kB / 375.9 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.3642, allocations: 0.896 MB / 376.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3645, allocations: 0.7713 MB / 377.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.554e-05/0.3646, allocations: 23.94 kB / 377.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of SimCode: time 4.2e-07/0.3646, allocations: 0.9062 kB / 377.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of Templates: time 0.009332/0.3739, allocations: 4.611 MB / 382.2 MB, free: 15.34 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches