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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 186.5 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.41/1.41, allocations: 222.9 MB / 240.9 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001157/0.001157, allocations: 102 kB / 291.2 MB, free: 10.95 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008661/0.0008663, allocations: 39.94 kB / 350 MB, free: 84 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2443, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.003082/0.2474, allocations: 3.168 MB / 402.6 MB, free: 30.21 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008872/0.2484, allocations: 0.7477 MB / 403.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.2485, allocations: 4 kB / 403.4 MB, free: 29.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001633/0.2487, allocations: 44.77 kB / 403.4 MB, free: 29.41 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.2488, allocations: 91.23 kB / 403.5 MB, free: 29.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.2491, allocations: 87.92 kB / 403.6 MB, free: 29.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.2494, allocations: 406.2 kB / 404 MB, free: 28.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002004/0.2497, allocations: 124.2 kB / 404.1 MB, free: 28.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.2498, allocations: 151.4 kB / 404.3 MB, free: 28.56 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.25, allocations: 167.2 kB / 404.4 MB, free: 28.4 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.326e-05/0.2501, allocations: 20 kB / 404.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.96e-05/0.2501, allocations: 24 kB / 404.5 MB, free: 28.36 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.671e-05/0.2502, allocations: 67.75 kB / 404.6 MB, free: 28.29 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000134/0.2503, allocations: 179.1 kB / 404.7 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.2506, allocations: 404.1 kB / 405.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.2506, allocations: 0 / 405.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.103e-06/0.2506, allocations: 4 kB / 405.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.2506, allocations: 0 / 405.1 MB, free: 27.71 MB / 298.7 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.0009315/0.2516, allocations: 0.6432 MB / 405.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2516, allocations: 16.02 kB / 405.8 MB, free: 27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.357e-05/0.2517, allocations: 40.56 kB / 405.8 MB, free: 26.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002571/0.2519, allocations: 285.1 kB / 406.1 MB, free: 26.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.071e-05/0.252, allocations: 84.61 kB / 406.2 MB, free: 26.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.267e-05/0.2521, allocations: 32.38 kB / 406.2 MB, free: 26.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004134/0.2525, allocations: 334.9 kB / 406.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.2525, allocations: 0 / 406.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.2525, allocations: 16 kB / 406.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2526, allocations: 8 kB / 406.6 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.2529, allocations: 222.5 kB / 406.8 MB, free: 25.94 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00145/0.2544, allocations: 1.356 MB / 408.1 MB, free: 24.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002864/0.2547, allocations: 170.5 kB / 408.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001366/0.2548, allocations: 96.73 kB / 408.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.901e-05/0.2548, allocations: 0 / 408.4 MB, free: 24.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003077/0.2551, allocations: 157.9 kB / 408.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.312e-06/0.2552, allocations: 0 / 408.6 MB, free: 24.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0009602/0.2561, allocations: 405.3 kB / 409 MB, free: 23.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.2562, allocations: 114.7 kB / 409.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001889/0.2564, allocations: 262.6 kB / 409.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.2564, allocations: 33.7 kB / 409.4 MB, free: 23.17 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.884e-05/0.2565, allocations: 203.9 kB / 409.6 MB, free: 22.97 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.2565, allocations: 70.98 kB / 409.6 MB, free: 22.9 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.716e-05/0.2566, allocations: 62.03 kB / 409.7 MB, free: 22.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.402e-05/0.2567, allocations: 338.8 kB / 410 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.2568, allocations: 80.61 kB / 410.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.257, allocations: 177.4 kB / 410.3 MB, free: 22.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.2573, allocations: 237.2 kB / 410.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.2573, allocations: 0 / 410.5 MB, free: 21.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005416/0.2578, allocations: 344.3 kB / 410.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.803e-05/0.2578, allocations: 8 kB / 410.8 MB, free: 21.58 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2579, allocations: 4 kB / 410.8 MB, free: 21.57 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002572/0.2581, allocations: 56.97 kB / 410.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002305/0.2584, allocations: 63.84 kB / 411 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009244/0.2593, allocations: 1.408 MB / 412.4 MB, free: 19.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.2595, allocations: 43.67 kB / 412.4 MB, free: 19.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.001e-05/0.2596, allocations: 15.98 kB / 412.4 MB, free: 19.86 MB / 298.7 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.0001068/0.2597, allocations: 149.9 kB / 412.6 MB, free: 19.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.909e-05/0.2597, allocations: 27.72 kB / 412.6 MB, free: 19.67 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.093e-05/0.2597, allocations: 26.17 kB / 412.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2598, allocations: 4 kB / 412.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.244e-06/0.2598, allocations: 3.938 kB / 412.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2598, allocations: 0 / 412.6 MB, free: 19.64 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002155/0.26, allocations: 345.3 kB / 413 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.26, allocations: 0 / 413 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001625/0.2602, allocations: 35.92 kB / 413 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001532/0.2603, allocations: 52.81 kB / 413.1 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.56e-05/0.2604, allocations: 4 kB / 413.1 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007232/0.2611, allocations: 1.332 MB / 414.4 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2611, allocations: 0 / 414.4 MB, free: 17.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005079/0.2662, allocations: 2.469 MB / 416.9 MB, free: 15.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.387e-05/0.2663, allocations: 120.8 kB / 417 MB, free: 14.94 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.418e-05/0.2663, allocations: 11.94 kB / 417 MB, free: 14.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.2665, allocations: 19.98 kB / 417 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.2666, allocations: 27.95 kB / 417 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.2666, allocations: 7.984 kB / 417 MB, free: 14.88 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001271/0.2668, allocations: 182 kB / 417.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2668, allocations: 0 / 417.2 MB, free: 14.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005056/0.2673, allocations: 123.8 kB / 417.3 MB, free: 14.58 MB / 298.7 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.0001633/0.2675, allocations: 116.8 kB / 417.5 MB, free: 14.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000617/0.2681, allocations: 306.5 kB / 417.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2681, allocations: 3.938 kB / 417.8 MB, free: 14.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002446/0.2684, allocations: 199.3 kB / 418 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.2687, allocations: 40.41 kB / 418 MB, free: 13.89 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001446/0.2701, allocations: 0.971 MB / 419 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.2703, allocations: 0.7794 MB / 419.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001341/0.2704, allocations: 26.28 kB / 419.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.122e-05/0.2705, allocations: 23.44 kB / 419.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of SimCode: time 3.2e-07/0.2705, allocations: 0 / 419.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of Templates: time 0.005624/0.2762, allocations: 3.329 MB / 423.1 MB, free: 8.719 MB / 298.7 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@2/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