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.001132/0.001132, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001282/0.001282, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.4 MB / 247.4 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 65.25 kB / 307.6 MB, free: 0.6523 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08773/0.08898, allocations: 50.53 MB / 358.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004139/0.09315, allocations: 2.89 MB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.09462, allocations: 0.7634 MB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002322/0.09488, allocations: 4 kB / 361.8 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002126/0.09512, allocations: 47.5 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002642/0.0954, allocations: 103.1 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003761/0.09578, allocations: 99.8 kB / 362 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004355/0.09623, allocations: 366.4 kB / 362.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.09646, allocations: 123.2 kB / 362.5 MB, free: 9.715 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001919/0.09667, allocations: 143.5 kB / 362.7 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002302/0.0969, allocations: 155.2 kB / 362.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.146e-05/0.09697, allocations: 32 kB / 362.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.394e-05/0.09704, allocations: 28 kB / 362.9 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.09711, allocations: 71.75 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.09729, allocations: 167.2 kB / 363.1 MB, free: 9.129 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003318/0.09763, allocations: 363 kB / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09764, allocations: 0 / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.09765, allocations: 0 / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.09766, allocations: 0 / 363.5 MB, free: 8.773 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.001015/0.09869, allocations: 0.5979 MB / 364.1 MB, free: 8.121 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.458e-05/0.09873, allocations: 8.031 kB / 364.1 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.607e-05/0.09882, allocations: 36.56 kB / 364.1 MB, free: 8.078 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003106/0.09914, allocations: 272.3 kB / 364.4 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.865e-05/0.09922, allocations: 76.62 kB / 364.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.158e-05/0.09928, allocations: 32.38 kB / 364.5 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004594/0.09974, allocations: 301.9 kB / 364.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.289e-05/0.09977, allocations: 3.938 kB / 364.8 MB, free: 7.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.557e-05/0.09981, allocations: 15.94 kB / 364.8 MB, free: 7.328 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.09983, allocations: 8 kB / 364.8 MB, free: 7.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.1002, allocations: 186.2 kB / 365 MB, free: 7.141 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00165/0.1018, allocations: 1.127 MB / 366.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002974/0.1022, allocations: 158.6 kB / 366.3 MB, free: 5.762 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.1023, allocations: 80.83 kB / 366.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.491e-05/0.1023, allocations: 3.984 kB / 366.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003144/0.1027, allocations: 164.8 kB / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.684e-06/0.1027, allocations: 0 / 366.5 MB, free: 5.496 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001056/0.1037, allocations: 379.2 kB / 366.9 MB, free: 5.098 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.1038, allocations: 110.8 kB / 367 MB, free: 4.965 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.104, allocations: 228.9 kB / 367.2 MB, free: 4.73 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.1041, allocations: 29.7 kB / 367.2 MB, free: 4.695 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/0.1042, allocations: 176.2 kB / 367.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.084e-05/0.1043, allocations: 78.92 kB / 367.5 MB, free: 4.441 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.19e-05/0.1044, allocations: 57.7 kB / 367.5 MB, free: 4.379 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1045, allocations: 338.8 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.1046, allocations: 67.97 kB / 367.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001802/0.1048, allocations: 136.8 kB / 368.1 MB, free: 3.805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002679/0.1051, allocations: 189.8 kB / 368.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.1051, allocations: 4 kB / 368.3 MB, free: 3.594 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004421/0.1055, allocations: 276.4 kB / 368.5 MB, free: 3.316 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/0.1056, allocations: 4 kB / 368.5 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1056, allocations: 4 kB / 368.5 MB, free: 3.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002681/0.1059, allocations: 53.03 kB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.1061, allocations: 55.91 kB / 368.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001361/0.1075, allocations: 1.572 MB / 370.2 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002415/0.1077, allocations: 39.67 kB / 370.3 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.01e-05/0.1077, allocations: 8 kB / 370.3 MB, free: 1.445 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.0001424/0.1079, allocations: 154.2 kB / 370.4 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.143e-05/0.1079, allocations: 23.72 kB / 370.4 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.725e-05/0.108, allocations: 30.17 kB / 370.5 MB, free: 1.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.108, allocations: 4 kB / 370.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.108, allocations: 0 / 370.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.108, allocations: 0 / 370.5 MB, free: 1.234 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003229/0.1083, allocations: 321.4 kB / 370.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.1084, allocations: 0 / 370.8 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/0.1085, allocations: 35.98 kB / 370.8 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.1087, allocations: 52.75 kB / 370.9 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.91e-05/0.1088, allocations: 4 kB / 370.9 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1717/0.2805, allocations: 1.419 MB / 372.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.2805, allocations: 3.469 kB / 372.3 MB, free: 19.17 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007007/0.2812, allocations: 322.3 kB / 372.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.463e-05/0.2813, allocations: 115.6 kB / 372.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.185e-05/0.2814, allocations: 2.531 kB / 372.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000187/0.2815, allocations: 19.06 kB / 372.7 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.527e-05/0.2817, allocations: 31.03 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/0.2817, allocations: 10.47 kB / 372.8 MB, free: 19.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001434/0.2818, allocations: 169 kB / 373 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.61e-07/0.2818, allocations: 0.9688 kB / 373 MB, free: 18.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003991/0.2822, allocations: 84.67 kB / 373 MB, free: 18.93 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.0001327/0.2824, allocations: 102.6 kB / 373.1 MB, free: 18.84 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005957/0.283, allocations: 295.4 kB / 373.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.283, allocations: 1.031 kB / 373.4 MB, free: 18.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000262/0.2833, allocations: 192.5 kB / 373.6 MB, free: 18.63 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2836, allocations: 38.81 kB / 373.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.2852, allocations: 0.6876 MB / 374.3 MB, free: 18.33 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001935/0.2854, allocations: 0.7586 MB / 375.1 MB, free: 17.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.2855, allocations: 26.27 kB / 375.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2855, allocations: 0 / 375.1 MB, free: 17.62 MB / 302.1 MB Notification: Performance of Templates: time 0.007743/0.2933, allocations: 4.172 MB / 379.3 MB, free: 17.32 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