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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=16000,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=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007868/0.0007867, allocations: 95.14 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 200.7 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002404, allocations: 8 kB / 308.4 MB, free: 0.8242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1091, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00422/0.1133, allocations: 2.555 MB / 362.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001936/0.1153, allocations: 0.7441 MB / 363.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001718/0.1156, allocations: 7.938 kB / 363.2 MB, free: 9.969 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001473/0.1157, allocations: 35.69 kB / 363.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001982/0.116, allocations: 75.38 kB / 363.3 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.1163, allocations: 87.91 kB / 363.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.1167, allocations: 362.3 kB / 363.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002233/0.1169, allocations: 103.9 kB / 363.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1171, allocations: 115.5 kB / 364 MB, free: 9.199 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001992/0.1173, allocations: 143.3 kB / 364.1 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.263e-05/0.1174, allocations: 16 kB / 364.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.668e-05/0.1174, allocations: 16 kB / 364.2 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.687e-05/0.1175, allocations: 55.83 kB / 364.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.1177, allocations: 172.9 kB / 364.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002747/0.118, allocations: 263.5 kB / 364.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.118, allocations: 0 / 364.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.118, allocations: 0 / 364.6 MB, free: 8.539 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.118, allocations: 0 / 364.6 MB, free: 8.539 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.001028/0.119, allocations: 0.5589 MB / 365.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.1191, allocations: 8.031 kB / 365.2 MB, free: 7.922 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.604e-05/0.1192, allocations: 32.56 kB / 365.2 MB, free: 7.891 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003399/0.1195, allocations: 264.3 kB / 365.5 MB, free: 7.594 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.297e-05/0.1196, allocations: 84.61 kB / 365.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.682e-05/0.1197, allocations: 32.38 kB / 365.6 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000547/0.1202, allocations: 297.9 kB / 365.9 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.1203, allocations: 3.938 kB / 365.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.1203, allocations: 16 kB / 365.9 MB, free: 7.145 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1203, allocations: 4 kB / 365.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003982/0.1207, allocations: 186.2 kB / 366.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001887/0.1226, allocations: 1.147 MB / 367.2 MB, free: 5.727 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00034/0.123, allocations: 158.6 kB / 367.4 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001583/0.1231, allocations: 84.77 kB / 367.5 MB, free: 5.477 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.1232, allocations: 4 kB / 367.5 MB, free: 5.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003371/0.1235, allocations: 161.3 kB / 367.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.124e-06/0.1235, allocations: 0 / 367.6 MB, free: 5.297 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001033/0.1246, allocations: 395.2 kB / 368 MB, free: 4.883 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.1247, allocations: 102.8 kB / 368.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.1249, allocations: 233 kB / 368.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.527e-05/0.1249, allocations: 29.7 kB / 368.4 MB, free: 4.484 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.125, allocations: 180.2 kB / 368.6 MB, free: 4.305 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.73e-05/0.1251, allocations: 70.98 kB / 368.6 MB, free: 4.234 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.766e-05/0.1251, allocations: 37.7 kB / 368.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.1253, allocations: 330.8 kB / 369 MB, free: 3.859 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.1254, allocations: 67.97 kB / 369.1 MB, free: 3.793 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1256, allocations: 141.7 kB / 369.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002624/0.1258, allocations: 186 kB / 369.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.086e-06/0.1259, allocations: 4 kB / 369.4 MB, free: 3.414 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000427/0.1263, allocations: 276.4 kB / 369.7 MB, free: 3.137 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.1263, allocations: 4.219 kB / 369.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.1263, allocations: 8 kB / 369.7 MB, free: 3.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002616/0.1266, allocations: 52.81 kB / 369.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002053/0.1268, allocations: 51.92 kB / 369.8 MB, free: 3.02 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001275/0.1281, allocations: 1.404 MB / 371.2 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002464/0.1284, allocations: 47.77 kB / 371.2 MB, free: 1.438 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.133e-05/0.1284, allocations: 12 kB / 371.2 MB, free: 1.426 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.0001635/0.1286, allocations: 146.8 kB / 371.4 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.1286, allocations: 27.64 kB / 371.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.1287, allocations: 34.19 kB / 371.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1287, allocations: 4 kB / 371.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.786e-06/0.1287, allocations: 0 / 371.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1287, allocations: 3.984 kB / 371.4 MB, free: 1.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.129, allocations: 313.4 kB / 371.8 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.129, allocations: 4 kB / 371.8 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001627/0.1292, allocations: 39.86 kB / 371.8 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001884/0.1294, allocations: 56.81 kB / 371.8 MB, free: 0.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.251e-05/0.1294, allocations: 15.92 kB / 371.9 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1713/0.3007, allocations: 1.309 MB / 373.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3007, allocations: 4.188 kB / 373.2 MB, free: 18.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007951/0.3015, allocations: 333.4 kB / 373.5 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001258/0.3017, allocations: 115.9 kB / 373.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.531e-05/0.3017, allocations: 8.328 kB / 373.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.3019, allocations: 19.72 kB / 373.6 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.302, allocations: 38.09 kB / 373.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.819e-05/0.3021, allocations: 5.344 kB / 373.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001603/0.3022, allocations: 160.8 kB / 373.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3022, allocations: 0 / 373.8 MB, free: 17.99 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.3026, allocations: 77.39 kB / 373.9 MB, free: 17.99 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.0001143/0.3028, allocations: 107.8 kB / 374 MB, free: 17.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005318/0.3033, allocations: 284.3 kB / 374.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.3033, allocations: 0.625 kB / 374.3 MB, free: 17.79 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002684/0.3036, allocations: 195.8 kB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000324/0.3039, allocations: 41.78 kB / 374.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.3057, allocations: 0.8635 MB / 375.4 MB, free: 17.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002064/0.3059, allocations: 0.7577 MB / 376.2 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.687e-05/0.306, allocations: 21.8 kB / 376.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.306, allocations: 0 / 376.2 MB, free: 16.53 MB / 302.1 MB Notification: Performance of Templates: time 0.008257/0.3142, allocations: 4.139 MB / 380.3 MB, free: 16.26 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches