Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001855/0.001855, allocations: 108.6 kB / 16.51 MB, free: 6.691 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.002336/0.002336, allocations: 193.9 kB / 17.42 MB, free: 6.09 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.468/1.468, allocations: 222.9 MB / 241.1 MB, free: 13.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001758/0.001759, allocations: 47.8 kB / 300 MB, free: 6.094 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1388/0.1406, allocations: 49.45 MB / 349.4 MB, free: 4.637 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.0044/0.1451, allocations: 2.889 MB / 352.3 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00134/0.1465, allocations: 0.7245 MB / 353 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001515/0.1466, allocations: 12 kB / 353 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001816/0.1468, allocations: 35.69 kB / 353.1 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001774/0.147, allocations: 75.38 kB / 353.1 MB, free: 0.875 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003186/0.1474, allocations: 87.91 kB / 353.2 MB, free: 0.7891 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004213/0.1478, allocations: 358.4 kB / 353.6 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002236/0.148, allocations: 103.9 kB / 353.7 MB, free: 340 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001317/0.1482, allocations: 119.5 kB / 353.8 MB, free: 220 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.1484, allocations: 151.4 kB / 353.9 MB, free: 68 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.226e-05/0.1484, allocations: 20 kB / 354 MB, free: 48 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.018e-05/0.1485, allocations: 24 kB / 354 MB, free: 24 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.1486, allocations: 59.83 kB / 354 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001572/0.1488, allocations: 159.1 kB / 354.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00039/0.1492, allocations: 346.9 kB / 354.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1492, allocations: 0 / 354.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1492, allocations: 0 / 354.5 MB, free: 15.47 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1492, allocations: 0 / 354.5 MB, free: 15.47 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.001016/0.1502, allocations: 0.6096 MB / 355.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.1503, allocations: 12.03 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.918e-05/0.1503, allocations: 32.56 kB / 355.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003335/0.1507, allocations: 264.3 kB / 355.5 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.366e-05/0.1508, allocations: 80.62 kB / 355.5 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001074/0.1509, allocations: 28.36 kB / 355.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005429/0.1514, allocations: 301.8 kB / 355.9 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1515, allocations: 4 kB / 355.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1515, allocations: 8 kB / 355.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.055e-05/0.1515, allocations: 8 kB / 355.9 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003973/0.1519, allocations: 194.1 kB / 356.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001702/0.1536, allocations: 1.135 MB / 357.2 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003053/0.154, allocations: 150.6 kB / 357.3 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.1541, allocations: 80.83 kB / 357.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.32e-05/0.1541, allocations: 4 kB / 357.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004008/0.1545, allocations: 157.8 kB / 357.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.784e-06/0.1545, allocations: 0 / 357.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001129/0.1557, allocations: 393.7 kB / 358 MB, free: 11.79 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.31e-05/0.1558, allocations: 102.8 kB / 358.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000219/0.156, allocations: 221 kB / 358.3 MB, free: 11.44 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.156, allocations: 37.69 kB / 358.3 MB, free: 11.39 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1562, allocations: 180.2 kB / 358.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.357e-05/0.1562, allocations: 71 kB / 358.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.328e-05/0.1563, allocations: 57.69 kB / 358.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1565, allocations: 334.8 kB / 358.9 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.1566, allocations: 67.97 kB / 359 MB, free: 10.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001806/0.1568, allocations: 140.6 kB / 359.2 MB, free: 10.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002598/0.1571, allocations: 192.2 kB / 359.3 MB, free: 10.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.519e-06/0.1571, allocations: 4 kB / 359.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004246/0.1575, allocations: 276.3 kB / 359.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.925e-05/0.1575, allocations: 8 kB / 359.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.1576, allocations: 3.984 kB / 359.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003478/0.1579, allocations: 57.03 kB / 359.7 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.1581, allocations: 51.92 kB / 359.7 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/0.1597, allocations: 1.404 MB / 361.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002481/0.16, allocations: 39.67 kB / 361.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.16, allocations: 16.06 kB / 361.2 MB, free: 8.301 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,switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition1) * 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 (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.0001666/0.1602, allocations: 149.8 kB / 361.3 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.948e-05/0.1602, allocations: 23.73 kB / 361.4 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.73e-05/0.1603, allocations: 26.19 kB / 361.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1603, allocations: 0 / 361.4 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1603, allocations: 3.938 kB / 361.4 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.1603, allocations: 3.984 kB / 361.4 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.1607, allocations: 317.4 kB / 361.7 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1607, allocations: 8 kB / 361.7 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001693/0.1608, allocations: 35.86 kB / 361.7 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001923/0.161, allocations: 48.81 kB / 361.8 MB, free: 7.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.1611, allocations: 4 kB / 361.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001218/0.1623, allocations: 1.323 MB / 363.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1623, allocations: 0 / 363.1 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006501/0.163, allocations: 331.5 kB / 363.4 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1631, allocations: 108.8 kB / 363.6 MB, free: 5.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.928e-05/0.1631, allocations: 11.98 kB / 363.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.1633, allocations: 15.98 kB / 363.6 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.197e-05/0.1634, allocations: 36.02 kB / 363.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.341e-05/0.1634, allocations: 7.938 kB / 363.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001421/0.1636, allocations: 160.5 kB / 363.8 MB, free: 5.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1636, allocations: 3.938 kB / 363.8 MB, free: 5.473 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003703/0.164, allocations: 79.84 kB / 363.9 MB, free: 5.395 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 (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.0001337/0.1641, allocations: 107.7 kB / 364 MB, free: 5.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005953/0.1647, allocations: 290.6 kB / 364.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1647, allocations: 0 / 364.2 MB, free: 4.984 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.165, allocations: 186.6 kB / 364.4 MB, free: 4.789 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003266/0.1653, allocations: 44.28 kB / 364.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.1669, allocations: 0.7577 MB / 365.2 MB, free: 3.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.1673, allocations: 0.7638 MB / 366 MB, free: 3.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.1674, allocations: 26.28 kB / 366 MB, free: 3.148 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.177e-05/0.1675, allocations: 19.44 kB / 366 MB, free: 3.129 MB / 302.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1675, allocations: 0 / 366 MB, free: 3.129 MB / 302.1 MB Notification: Performance of Templates: time 0.006161/0.1736, allocations: 2.775 MB / 368.8 MB, free: 388 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches