Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001154/0.001161, allocations: 98.97 kB / 17 MB, free: 6.043 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 194 kB / 17.91 MB, free: 5.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.458/1.458, allocations: 227.7 MB / 246.4 MB, free: 9.809 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003037/0.0003038, allocations: 8 kB / 307.1 MB, free: 0.9609 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.131/0.1313, allocations: 51.51 MB / 358.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003935/0.1353, allocations: 2.455 MB / 361.1 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001507/0.1369, allocations: 0.7248 MB / 361.8 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001814/0.1371, allocations: 11.94 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.1372, allocations: 35.75 kB / 361.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001908/0.1374, allocations: 79.31 kB / 361.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.1378, allocations: 71.92 kB / 362 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004134/0.1383, allocations: 342.5 kB / 362.3 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002631/0.1385, allocations: 90.33 kB / 362.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001631/0.1387, allocations: 119.6 kB / 362.5 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002179/0.1389, allocations: 131.4 kB / 362.7 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.828e-05/0.139, allocations: 16 kB / 362.7 MB, free: 9.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.247e-05/0.139, allocations: 20 kB / 362.7 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.1391, allocations: 55.77 kB / 362.8 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.965e-05/0.1392, allocations: 81.52 kB / 362.8 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002916/0.1395, allocations: 267.5 kB / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1395, allocations: 0 / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1395, allocations: 0 / 363.1 MB, free: 8.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.1395, allocations: 0 / 363.1 MB, free: 8.93 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001091/0.1406, allocations: 0.5627 MB / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.1407, allocations: 8.031 kB / 363.7 MB, free: 8.309 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.564e-05/0.1408, allocations: 35.62 kB / 363.7 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000364/0.1411, allocations: 259.1 kB / 364 MB, free: 7.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.044e-05/0.1412, allocations: 80.05 kB / 364 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.391e-05/0.1413, allocations: 28 kB / 364.1 MB, free: 7.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005039/0.1418, allocations: 289.7 kB / 364.3 MB, free: 7.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.1418, allocations: 7.922 kB / 364.4 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.841e-05/0.1419, allocations: 23.94 kB / 364.4 MB, free: 7.539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.239e-05/0.1419, allocations: 8 kB / 364.4 MB, free: 7.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.1422, allocations: 182.2 kB / 364.6 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001732/0.144, allocations: 1.139 MB / 365.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003174/0.1443, allocations: 162.6 kB / 365.9 MB, free: 5.961 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.1445, allocations: 73.53 kB / 365.9 MB, free: 5.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.1445, allocations: 3.984 kB / 365.9 MB, free: 5.883 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003306/0.1448, allocations: 162.5 kB / 366.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.323e-06/0.1448, allocations: 0 / 366.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001043/0.1459, allocations: 397.3 kB / 366.5 MB, free: 5.293 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.879e-05/0.146, allocations: 102.8 kB / 366.6 MB, free: 5.168 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002593/0.1463, allocations: 233 kB / 366.8 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1463, allocations: 33.64 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1465, allocations: 180.2 kB / 367 MB, free: 4.711 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.39e-05/0.1465, allocations: 71.08 kB / 367.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.288e-05/0.1466, allocations: 4 kB / 367.1 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.1467, allocations: 330.8 kB / 367.4 MB, free: 4.305 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1468, allocations: 63.97 kB / 367.5 MB, free: 4.242 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001797/0.147, allocations: 140.8 kB / 367.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000147/0.1472, allocations: 81.16 kB / 367.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1472, allocations: 0 / 367.7 MB, free: 3.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004459/0.1476, allocations: 274.5 kB / 368 MB, free: 3.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.758e-05/0.1477, allocations: 7.125 kB / 368 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.01e-05/0.1477, allocations: 4 kB / 368 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003138/0.148, allocations: 64.97 kB / 368 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002343/0.1483, allocations: 55.88 kB / 368.1 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001443/0.1497, allocations: 1.404 MB / 369.5 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002073/0.1499, allocations: 47.77 kB / 369.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.022e-05/0.15, allocations: 8 kB / 369.6 MB, free: 2 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$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 (34): * Single equations (assignments): 33 * 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.0001521/0.1501, allocations: 151.3 kB / 369.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.978e-05/0.1502, allocations: 31.61 kB / 369.7 MB, free: 1.812 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.918e-05/0.1502, allocations: 22.19 kB / 369.8 MB, free: 1.789 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1502, allocations: 7.984 kB / 369.8 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.475e-06/0.1502, allocations: 0 / 369.8 MB, free: 1.781 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.38e-06/0.1503, allocations: 3.984 kB / 369.8 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003144/0.1506, allocations: 317.5 kB / 370.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1506, allocations: 0 / 370.1 MB, free: 1.418 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001565/0.1507, allocations: 31.98 kB / 370.1 MB, free: 1.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001693/0.1509, allocations: 52.77 kB / 370.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.151, allocations: 12 kB / 370.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2244/0.3754, allocations: 1.317 MB / 371.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.3754, allocations: 0.875 kB / 371.5 MB, free: 18.49 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008332/0.3763, allocations: 333.9 kB / 371.8 MB, free: 18.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001165/0.3764, allocations: 114.3 kB / 371.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.019e-05/0.3765, allocations: 8.719 kB / 371.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.3766, allocations: 20.73 kB / 372 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.3767, allocations: 32.52 kB / 372 MB, free: 18.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.3768, allocations: 6.219 kB / 372 MB, free: 18.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.3769, allocations: 162.3 kB / 372.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3769, allocations: 1.562 kB / 372.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004427/0.3774, allocations: 78.02 kB / 372.2 MB, free: 18.25 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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,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): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001316/0.3775, allocations: 110 kB / 372.3 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005379/0.3781, allocations: 284.7 kB / 372.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.3781, allocations: 0 / 372.6 MB, free: 18.05 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002311/0.3783, allocations: 192.6 kB / 372.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.3786, allocations: 36.58 kB / 372.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00154/0.3802, allocations: 0.8161 MB / 373.7 MB, free: 17.57 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.3804, allocations: 0.7612 MB / 374.4 MB, free: 16.87 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.3805, allocations: 24.39 kB / 374.4 MB, free: 16.86 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.345e-05/0.3806, allocations: 20.33 kB / 374.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3806, allocations: 0 / 374.5 MB, free: 16.86 MB / 302.1 MB Notification: Performance of Templates: time 0.00713/0.3877, allocations: 2.66 MB / 377.1 MB, free: 16.69 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches