Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002038/0.002038, allocations: 92.31 kB / 20.96 MB, free: 3.473 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002527/0.002527, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.528/1.528, allocations: 177.1 MB / 204.6 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.817e-06/3.817e-06, allocations: 3.984 kB / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.455e-05/2.836e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004844/0.004873, allocations: 2.931 MB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.006538, allocations: 0.7827 MB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001643/0.006702, allocations: 11.94 kB / 276.1 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005258/0.007228, allocations: 55.42 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002266/0.007454, allocations: 111 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004422/0.007896, allocations: 135.5 kB / 276.4 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.008438, allocations: 426 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002237/0.008661, allocations: 100.3 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000422/0.009083, allocations: 251.4 kB / 277.1 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.009327, allocations: 127.7 kB / 277.2 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.127e-05/0.009388, allocations: 32 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.698e-05/0.009485, allocations: 44 kB / 277.3 MB, free: 12.79 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.921e-05/0.009574, allocations: 83.66 kB / 277.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001779/0.009752, allocations: 131.7 kB / 277.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006132/0.01037, allocations: 438.5 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.144e-05/0.01038, allocations: 4 kB / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.01038, allocations: 0 / 278 MB, free: 12.15 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.694e-06/0.01039, allocations: 0 / 278 MB, free: 12.15 MB / 266.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.001227/0.01161, allocations: 0.5792 MB / 278.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.01166, allocations: 12.03 kB / 278.6 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002661/0.01192, allocations: 76.64 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004796/0.0124, allocations: 234.8 kB / 278.9 MB, free: 11.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001417/0.01254, allocations: 124 kB / 279 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.126e-05/0.01262, allocations: 40.38 kB / 279 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000687/0.0133, allocations: 390.7 kB / 279.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.214e-05/0.01332, allocations: 192 / 279.4 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.01336, allocations: 20.12 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.348e-05/0.01337, allocations: 8 kB / 279.4 MB, free: 10.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004687/0.01384, allocations: 218.5 kB / 279.6 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002057/0.0159, allocations: 1.199 MB / 280.8 MB, free: 9.082 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.01627, allocations: 154.6 kB / 281 MB, free: 8.922 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001856/0.01646, allocations: 84.77 kB / 281.1 MB, free: 8.836 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.01648, allocations: 4 kB / 281.1 MB, free: 8.832 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003407/0.01682, allocations: 209.2 kB / 281.3 MB, free: 8.594 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.01682, allocations: 4 kB / 281.3 MB, free: 8.59 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.001181/0.018, allocations: 333.5 kB / 281.6 MB, free: 8.258 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.108e-05/0.01809, allocations: 106.8 kB / 281.7 MB, free: 8.129 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002892/0.01838, allocations: 241.8 kB / 281.9 MB, free: 7.883 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.01842, allocations: 33.7 kB / 282 MB, free: 7.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001803/0.0186, allocations: 212.2 kB / 282.2 MB, free: 7.629 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.109e-05/0.01868, allocations: 79.41 kB / 282.3 MB, free: 7.551 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.01879, allocations: 57.98 kB / 282.3 MB, free: 7.488 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002126/0.019, allocations: 342.8 kB / 282.7 MB, free: 7.145 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001769/0.01918, allocations: 80.61 kB / 282.7 MB, free: 7.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003275/0.01951, allocations: 224.9 kB / 283 MB, free: 6.789 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006574/0.02016, allocations: 231.5 kB / 283.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.02017, allocations: 0 / 283.2 MB, free: 6.527 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007914/0.02096, allocations: 356.6 kB / 283.5 MB, free: 6.172 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/0.02098, allocations: 4 kB / 283.5 MB, free: 6.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.02099, allocations: 7.938 kB / 283.5 MB, free: 6.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002838/0.02127, allocations: 60.75 kB / 283.6 MB, free: 6.098 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002772/0.02155, allocations: 63.91 kB / 283.7 MB, free: 6.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001785/0.02333, allocations: 1.449 MB / 285.1 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002847/0.02362, allocations: 35.83 kB / 285.1 MB, free: 4.453 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.02366, allocations: 19.94 kB / 285.2 MB, free: 4.434 MB / 266.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.000255/0.02391, allocations: 153.9 kB / 285.3 MB, free: 4.273 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.513e-05/0.02398, allocations: 31.81 kB / 285.4 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.02404, allocations: 30.27 kB / 285.4 MB, free: 4.207 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.02404, allocations: 4 kB / 285.4 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.02405, allocations: 0 / 285.4 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.02405, allocations: 0 / 285.4 MB, free: 4.203 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003518/0.0244, allocations: 241 kB / 285.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.02441, allocations: 0 / 285.6 MB, free: 3.938 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001988/0.0246, allocations: 39.91 kB / 285.7 MB, free: 3.898 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00022/0.02482, allocations: 52.83 kB / 285.7 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.732e-05/0.02485, allocations: 11.98 kB / 285.7 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00147/0.02632, allocations: 1.303 MB / 287 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.02632, allocations: 0 / 287 MB, free: 2.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008117/0.02714, allocations: 349.6 kB / 287.4 MB, free: 2.066 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.756e-05/0.02723, allocations: 39.81 kB / 287.4 MB, free: 2.027 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.691e-05/0.02728, allocations: 8 kB / 287.4 MB, free: 2.02 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.02746, allocations: 16.12 kB / 287.4 MB, free: 2.004 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001061/0.02756, allocations: 39.94 kB / 287.5 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.785e-05/0.02758, allocations: 7.984 kB / 287.5 MB, free: 1.957 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001901/0.02777, allocations: 161.2 kB / 287.6 MB, free: 1.801 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02777, allocations: 0 / 287.6 MB, free: 1.801 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004569/0.02823, allocations: 99.77 kB / 287.7 MB, free: 1.703 MB / 266.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.0001914/0.02842, allocations: 103.2 kB / 287.8 MB, free: 1.594 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007744/0.02919, allocations: 312.8 kB / 288.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.0292, allocations: 0 / 288.1 MB, free: 1.281 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/0.02959, allocations: 194.5 kB / 288.3 MB, free: 1.078 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003385/0.02993, allocations: 32.48 kB / 288.4 MB, free: 1.047 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/0.03169, allocations: 0.6224 MB / 289 MB, free: 404 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.03187, allocations: 165.1 kB / 289.1 MB, free: 220 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.03198, allocations: 26.28 kB / 289.2 MB, free: 192 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.03205, allocations: 20.5 kB / 289.2 MB, free: 168 kB / 266.7 MB Notification: Performance of SimCode: time 7.82e-07/0.03205, allocations: 0 / 289.2 MB, free: 168 kB / 266.7 MB Notification: Performance of Templates: time 0.008006/0.04005, allocations: 2.924 MB / 292.1 MB, free: 13.29 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.72711069509387]