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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001828/0.001828, allocations: 113 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002104/0.002104, allocations: 197.9 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.464/1.464, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] 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=24000,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=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001483/0.001483, allocations: 51.92 kB / 368.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2541, allocations: 52.13 MB / 420.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004773/0.2589, allocations: 3.176 MB / 424.1 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.2604, allocations: 0.7595 MB / 424.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001541/0.2605, allocations: 4 kB / 424.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.2607, allocations: 55.44 kB / 424.9 MB, free: 11.08 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002119/0.2609, allocations: 103 kB / 425 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003674/0.2613, allocations: 119.7 kB / 425.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004901/0.2618, allocations: 418.2 kB / 425.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.262, allocations: 99.75 kB / 425.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.2622, allocations: 159.4 kB / 425.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.2625, allocations: 175.2 kB / 425.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.484e-05/0.2625, allocations: 32 kB / 426 MB, free: 9.984 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.378e-05/0.2626, allocations: 36 kB / 426 MB, free: 9.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.024e-05/0.2626, allocations: 83.69 kB / 426.1 MB, free: 9.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000185/0.2628, allocations: 183.1 kB / 426.3 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004777/0.2633, allocations: 427.5 kB / 426.7 MB, free: 9.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2633, allocations: 4 kB / 426.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2633, allocations: 0 / 426.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.2633, allocations: 0 / 426.7 MB, free: 9.27 MB / 334.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.001118/0.2644, allocations: 0.6584 MB / 427.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.2645, allocations: 19.89 kB / 427.3 MB, free: 8.543 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.603e-05/0.2646, allocations: 40.7 kB / 427.4 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004418/0.265, allocations: 285.3 kB / 427.7 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.584e-05/0.2651, allocations: 80.62 kB / 427.7 MB, free: 8.094 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.2651, allocations: 28.38 kB / 427.8 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006203/0.2658, allocations: 342.8 kB / 428.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.2658, allocations: 0 / 428.1 MB, free: 7.711 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.2658, allocations: 19.98 kB / 428.1 MB, free: 7.691 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.998e-06/0.2658, allocations: 8 kB / 428.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004404/0.2663, allocations: 214.5 kB / 428.3 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002005/0.2683, allocations: 1.36 MB / 429.7 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003459/0.2686, allocations: 150.6 kB / 429.9 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001651/0.2688, allocations: 84.8 kB / 429.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.2688, allocations: 4 kB / 429.9 MB, free: 5.77 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000294/0.2691, allocations: 157.8 kB / 430.1 MB, free: 5.594 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.2691, allocations: 4 kB / 430.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001162/0.2703, allocations: 401.7 kB / 430.5 MB, free: 5.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.919e-05/0.2703, allocations: 114.7 kB / 430.6 MB, free: 5.035 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002876/0.2706, allocations: 262.7 kB / 430.9 MB, free: 4.777 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2707, allocations: 33.64 kB / 430.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001587/0.2708, allocations: 212.3 kB / 431.1 MB, free: 4.527 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.8e-05/0.2709, allocations: 75.38 kB / 431.2 MB, free: 4.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001039/0.271, allocations: 58.03 kB / 431.2 MB, free: 4.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.00017/0.2712, allocations: 342.8 kB / 431.6 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.2713, allocations: 76.62 kB / 431.6 MB, free: 3.973 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002466/0.2716, allocations: 177.5 kB / 431.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003726/0.2719, allocations: 244.9 kB / 432.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.2719, allocations: 4 kB / 432.1 MB, free: 3.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007048/0.2727, allocations: 340.3 kB / 432.4 MB, free: 3.137 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.2727, allocations: 8 kB / 432.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2727, allocations: 0 / 432.4 MB, free: 3.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002751/0.273, allocations: 61.16 kB / 432.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.2732, allocations: 59.91 kB / 432.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001593/0.2748, allocations: 1.568 MB / 434.1 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002569/0.2751, allocations: 47.81 kB / 434.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.2751, allocations: 16 kB / 434.1 MB, free: 1.242 MB / 334.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.0001577/0.2753, allocations: 149.7 kB / 434.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.2753, allocations: 27.86 kB / 434.3 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.462e-05/0.2754, allocations: 34.11 kB / 434.4 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2754, allocations: 4 kB / 434.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.094e-06/0.2754, allocations: 0 / 434.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.86e-06/0.2754, allocations: 3.984 kB / 434.4 MB, free: 1.012 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003713/0.2758, allocations: 341.4 kB / 434.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.2758, allocations: 0 / 434.7 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001931/0.2759, allocations: 35.97 kB / 434.7 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001949/0.2761, allocations: 56.75 kB / 434.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.2762, allocations: 0 / 434.8 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001329/0.2775, allocations: 1.426 MB / 436.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.2775, allocations: 0 / 436.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007379/0.2782, allocations: 357.5 kB / 436.6 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001161/0.2783, allocations: 112.9 kB / 436.7 MB, free: 14.47 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.2784, allocations: 16.11 kB / 436.7 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001672/0.2786, allocations: 11.98 kB / 436.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.4e-05/0.2786, allocations: 35.89 kB / 436.7 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.678e-05/0.2787, allocations: 4 kB / 436.7 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001874/0.2788, allocations: 182 kB / 436.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2788, allocations: 0 / 436.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000393/0.2792, allocations: 91.84 kB / 437 MB, free: 14.13 MB / 350.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.0001373/0.2794, allocations: 116.6 kB / 437.1 MB, free: 14.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006355/0.28, allocations: 306.4 kB / 437.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.28, allocations: 0 / 437.4 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000327/0.2803, allocations: 207.2 kB / 437.6 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.2806, allocations: 32.55 kB / 437.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.2822, allocations: 0.6862 MB / 438.3 MB, free: 12.74 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004125/0.2826, allocations: 0.7714 MB / 439.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001078/0.2827, allocations: 30.27 kB / 439.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.76e-05/0.2827, allocations: 23.44 kB / 439.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of SimCode: time 8.12e-07/0.2827, allocations: 0 / 439.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of Templates: time 0.007702/0.2904, allocations: 3.252 MB / 442.4 MB, free: 8.664 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7455069134011865]