Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001273/0.001273, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001333/0.001333, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.598/1.598, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 69.02 kB / 307.9 MB, free: 496 kB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1048, allocations: 50.53 MB / 358.4 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004372/0.1093, allocations: 2.888 MB / 361.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001278/0.1106, allocations: 0.7711 MB / 362.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001097/0.1107, allocations: 4 kB / 362.1 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.1108, allocations: 51.5 kB / 362.1 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.111, allocations: 87.2 kB / 362.2 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003098/0.1113, allocations: 107.7 kB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003959/0.1117, allocations: 366.4 kB / 362.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002254/0.112, allocations: 123.2 kB / 362.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001546/0.1121, allocations: 143.5 kB / 363 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.1124, allocations: 151.3 kB / 363.1 MB, free: 9.238 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.892e-05/0.1124, allocations: 28 kB / 363.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.006e-05/0.1125, allocations: 32 kB / 363.2 MB, free: 9.18 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.533e-05/0.1126, allocations: 71.75 kB / 363.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001846/0.1128, allocations: 167.2 kB / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003857/0.1131, allocations: 363 kB / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1132, allocations: 0 / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.022e-06/0.1132, allocations: 0 / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1132, allocations: 4 kB / 363.7 MB, free: 8.586 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.001054/0.1142, allocations: 0.5979 MB / 364.3 MB, free: 7.934 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.1143, allocations: 8.031 kB / 364.4 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.088e-05/0.1144, allocations: 40.56 kB / 364.4 MB, free: 7.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.1147, allocations: 268.3 kB / 364.7 MB, free: 7.586 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.1148, allocations: 76.61 kB / 364.7 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.912e-05/0.1148, allocations: 28.38 kB / 364.8 MB, free: 7.473 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004836/0.1153, allocations: 293.9 kB / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.1154, allocations: 0 / 365 MB, free: 7.172 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.25e-05/0.1154, allocations: 19.98 kB / 365.1 MB, free: 7.152 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1154, allocations: 8 kB / 365.1 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.1158, allocations: 186.1 kB / 365.3 MB, free: 6.965 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.1175, allocations: 1.127 MB / 366.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003058/0.1178, allocations: 172.6 kB / 366.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001355/0.1179, allocations: 76.84 kB / 366.6 MB, free: 5.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.751e-05/0.118, allocations: 4 kB / 366.6 MB, free: 5.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003004/0.1183, allocations: 157.8 kB / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 3.246e-06/0.1183, allocations: 0 / 366.8 MB, free: 5.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001035/0.1193, allocations: 388.6 kB / 367.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.1194, allocations: 106.8 kB / 367.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002264/0.1196, allocations: 228.9 kB / 367.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/0.1197, allocations: 29.7 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001301/0.1198, allocations: 180.2 kB / 367.7 MB, free: 4.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.134e-05/0.1199, allocations: 70.89 kB / 367.8 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.642e-05/0.12, allocations: 61.69 kB / 367.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/0.1202, allocations: 342.8 kB / 368.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001272/0.1203, allocations: 63.97 kB / 368.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002107/0.1205, allocations: 141.5 kB / 368.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002882/0.1208, allocations: 193.8 kB / 368.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1208, allocations: 3.984 kB / 368.6 MB, free: 3.406 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000456/0.1213, allocations: 272.4 kB / 368.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.362e-05/0.1213, allocations: 5.875 kB / 368.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.1213, allocations: 4 kB / 368.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002592/0.1216, allocations: 57.03 kB / 368.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002095/0.1218, allocations: 47.92 kB / 368.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001499/0.1233, allocations: 1.572 MB / 370.5 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002228/0.1235, allocations: 35.67 kB / 370.5 MB, free: 1.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.539e-05/0.1236, allocations: 20.08 kB / 370.6 MB, free: 1.258 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.0001461/0.1237, allocations: 145.7 kB / 370.7 MB, free: 1.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.667e-05/0.1238, allocations: 23.72 kB / 370.7 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.286e-05/0.1238, allocations: 30.17 kB / 370.8 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.1239, allocations: 4 kB / 370.8 MB, free: 1.051 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.1239, allocations: 4 kB / 370.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1239, allocations: 0 / 370.8 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003453/0.1242, allocations: 317.4 kB / 371.1 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.1242, allocations: 4 kB / 371.1 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001772/0.1244, allocations: 31.98 kB / 371.1 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001939/0.1246, allocations: 52.81 kB / 371.2 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.915e-05/0.1246, allocations: 7.984 kB / 371.2 MB, free: 0.5898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1433/0.2679, allocations: 1.412 MB / 372.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.268, allocations: 0.5625 kB / 372.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006558/0.2686, allocations: 326.9 kB / 372.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.2687, allocations: 112.6 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.897e-05/0.2688, allocations: 11.31 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001738/0.2689, allocations: 17.94 kB / 373 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.471e-05/0.269, allocations: 33.38 kB / 373.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.2691, allocations: 6.594 kB / 373.1 MB, free: 18.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000131/0.2692, allocations: 166.8 kB / 373.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2692, allocations: 1.031 kB / 373.2 MB, free: 18.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.2696, allocations: 83.94 kB / 373.3 MB, free: 18.75 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.0001066/0.2697, allocations: 110.8 kB / 373.4 MB, free: 18.67 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005097/0.2702, allocations: 288.5 kB / 373.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2702, allocations: 1 kB / 373.7 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002343/0.2705, allocations: 198.1 kB / 373.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.2708, allocations: 37.89 kB / 373.9 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.2722, allocations: 0.6801 MB / 374.6 MB, free: 18.15 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001856/0.2724, allocations: 0.7596 MB / 375.4 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.786e-05/0.2725, allocations: 26.05 kB / 375.4 MB, free: 17.44 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2725, allocations: 0 / 375.4 MB, free: 17.44 MB / 302.1 MB Notification: Performance of Templates: time 0.006596/0.2791, allocations: 4.173 MB / 379.6 MB, free: 17.16 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches