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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001395/0.001395, allocations: 83.67 kB / 21.7 MB, free: 2.844 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001458/0.001458, allocations: 166.9 kB / 24.99 MB, free: 9.277 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.024/1.024, allocations: 177 MB / 205.2 MB, free: 5.574 MB / 186.7 MB " [Timeout remaining time 179] 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=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.386e-05/1.493e-05, allocations: 5.266 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.002631/0.002645, allocations: 2.89 MB / 275.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001054/0.003699, allocations: 0.7632 MB / 276.7 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001144/0.003814, allocations: 8 kB / 276.7 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001285/0.003942, allocations: 47.5 kB / 276.7 MB, free: 13.99 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001318/0.004074, allocations: 95.06 kB / 276.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002729/0.004347, allocations: 103.7 kB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002946/0.004642, allocations: 386.1 kB / 277.3 MB, free: 13.42 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001637/0.004805, allocations: 87.66 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001744/0.00498, allocations: 219.5 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.005116, allocations: 111.7 kB / 277.7 MB, free: 13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.78e-05/0.005153, allocations: 32 kB / 277.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.994e-05/0.005183, allocations: 28 kB / 277.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.979e-05/0.005233, allocations: 79.72 kB / 277.8 MB, free: 12.87 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.131e-05/0.005324, allocations: 111.8 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002276/0.005552, allocations: 251.1 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-06/0.005554, allocations: 4 kB / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.32e-07/0.005554, allocations: 0 / 278.2 MB, free: 12.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.005559, allocations: 4 kB / 278.2 MB, free: 12.5 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0006457/0.006204, allocations: 0.6338 MB / 278.8 MB, free: 11.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.695e-05/0.006241, allocations: 11.98 kB / 278.8 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.205e-05/0.006323, allocations: 60.7 kB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.006551, allocations: 212.8 kB / 279.1 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.385e-05/0.006635, allocations: 132 kB / 279.2 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.006672, allocations: 32.31 kB / 279.3 MB, free: 11.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.006979, allocations: 315.1 kB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.006988, allocations: 192 / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.134e-05/0.00701, allocations: 12.12 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.00702, allocations: 8 kB / 279.6 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.007194, allocations: 119.8 kB / 279.7 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009743/0.008168, allocations: 1.088 MB / 280.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001957/0.008364, allocations: 135 kB / 280.9 MB, free: 9.562 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.985e-05/0.008433, allocations: 55.66 kB / 281 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.008449, allocations: 7.984 kB / 281 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001742/0.008623, allocations: 195.5 kB / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 1.262e-06/0.008625, allocations: 0 / 281.2 MB, free: 9.266 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005129/0.009138, allocations: 256.7 kB / 281.4 MB, free: 9.008 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.009185, allocations: 114.7 kB / 281.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.00932, allocations: 254.7 kB / 281.8 MB, free: 8.605 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.804e-05/0.009338, allocations: 33.7 kB / 281.8 MB, free: 8.566 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.617e-05/0.009424, allocations: 227.2 kB / 282.1 MB, free: 8.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.38e-05/0.009468, allocations: 75.38 kB / 282.1 MB, free: 8.266 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.095e-05/0.009529, allocations: 63.34 kB / 282.2 MB, free: 8.195 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001093/0.009638, allocations: 0.4962 MB / 282.7 MB, free: 7.688 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.393e-05/0.009702, allocations: 39.97 kB / 282.7 MB, free: 7.648 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001191/0.009821, allocations: 201.9 kB / 282.9 MB, free: 7.395 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001552/0.009977, allocations: 170.8 kB / 283.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.009979, allocations: 0 / 283.1 MB, free: 7.195 MB / 266.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0002527/0.01023, allocations: 243.3 kB / 283.3 MB, free: 6.949 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.01024, allocations: 6.969 kB / 283.3 MB, free: 6.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.01025, allocations: 8.219 kB / 283.3 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001554/0.0104, allocations: 47.58 kB / 283.4 MB, free: 6.887 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000125/0.01053, allocations: 47.92 kB / 283.4 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008789/0.01141, allocations: 1.981 MB / 285.4 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.01151, allocations: 35.83 kB / 285.4 MB, free: 4.703 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.01152, allocations: 12 kB / 285.5 MB, free: 4.691 MB / 266.7 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 9.568e-05/0.01162, allocations: 180.4 kB / 285.6 MB, free: 4.504 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.01165, allocations: 31.89 kB / 285.7 MB, free: 4.473 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.506e-05/0.01167, allocations: 21.97 kB / 285.7 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.01167, allocations: 8 kB / 285.7 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.01168, allocations: 4 kB / 285.7 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.977e-06/0.01168, allocations: 3.984 kB / 285.7 MB, free: 4.434 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.01184, allocations: 216.5 kB / 285.9 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01184, allocations: 4 kB / 285.9 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.942e-05/0.01193, allocations: 27.98 kB / 285.9 MB, free: 4.156 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.037e-05/0.01202, allocations: 47.58 kB / 286 MB, free: 4.105 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.01203, allocations: 8 kB / 286 MB, free: 4.098 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006924/0.01273, allocations: 1.752 MB / 287.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.01273, allocations: 0 / 287.8 MB, free: 2.223 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003082/0.01304, allocations: 275.9 kB / 288 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.308e-05/0.01309, allocations: 39.77 kB / 288.1 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.01311, allocations: 7.938 kB / 288.1 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.622e-05/0.01317, allocations: 12 kB / 288.1 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.722e-05/0.01324, allocations: 31.94 kB / 288.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-06/0.01325, allocations: 7.984 kB / 288.1 MB, free: 1.828 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.921e-05/0.01333, allocations: 181.4 kB / 288.3 MB, free: 1.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01333, allocations: 0 / 288.3 MB, free: 1.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002219/0.01355, allocations: 83.78 kB / 288.4 MB, free: 1.57 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: 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 7.346e-05/0.01362, allocations: 107.2 kB / 288.5 MB, free: 1.457 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003232/0.01395, allocations: 309 kB / 288.8 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.01395, allocations: 0 / 288.8 MB, free: 1.137 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003101/0.01426, allocations: 238.4 kB / 289 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002679/0.01453, allocations: 52.2 kB / 289.1 MB, free: 0.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001231/0.01576, allocations: 0.5774 MB / 289.6 MB, free: 228 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.36e-05/0.01581, allocations: 84.31 kB / 289.7 MB, free: 124 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.52e-05/0.01589, allocations: 25.92 kB / 289.8 MB, free: 96 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.73e-05/0.01593, allocations: 20.5 kB / 289.8 MB, free: 76 kB / 266.7 MB Notification: Performance of SimCode: time 1.423e-06/0.01594, allocations: 4 kB / 289.8 MB, free: 72 kB / 266.7 MB Notification: Performance of Templates: time 0.005042/0.02098, allocations: 2.924 MB / 292.7 MB, free: 13.19 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0139882548246533]