Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 110.5 kB / 17.29 MB, free: 6.195 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001227, allocations: 193.3 kB / 18.21 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 47.39 kB / 300.8 MB, free: 6.184 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08739/0.08852, allocations: 49.44 MB / 350.2 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004062/0.09262, allocations: 2.912 MB / 353.1 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001324/0.09397, allocations: 0.7245 MB / 353.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002339/0.09423, allocations: 11.94 kB / 353.9 MB, free: 1.066 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.09443, allocations: 31.75 kB / 353.9 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002289/0.09468, allocations: 79.31 kB / 354 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.09505, allocations: 87.92 kB / 354.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.09546, allocations: 370.3 kB / 354.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002372/0.0957, allocations: 123.2 kB / 354.6 MB, free: 396 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.09591, allocations: 135.5 kB / 354.7 MB, free: 260 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.09617, allocations: 151.3 kB / 354.8 MB, free: 108 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.819e-05/0.09624, allocations: 35.94 kB / 354.9 MB, free: 72 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.885e-05/0.0963, allocations: 28 kB / 354.9 MB, free: 44 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.372e-05/0.09639, allocations: 79.73 kB / 355 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.09656, allocations: 163.2 kB / 355.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002887/0.09685, allocations: 271.6 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.09687, allocations: 0 / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.09688, allocations: 4 kB / 355.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.0969, allocations: 0 / 355.4 MB, free: 15.54 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.001041/0.09794, allocations: 0.5979 MB / 356 MB, free: 14.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.09799, allocations: 8.031 kB / 356 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.09808, allocations: 40.56 kB / 356 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000323/0.09841, allocations: 268.3 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.191e-05/0.09849, allocations: 72.62 kB / 356.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.021e-05/0.09854, allocations: 32.38 kB / 356.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004717/0.09902, allocations: 297.9 kB / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.09904, allocations: 0 / 356.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.201e-05/0.09908, allocations: 15.94 kB / 356.7 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.197e-06/0.0991, allocations: 12 kB / 356.7 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003547/0.09946, allocations: 190.2 kB / 356.9 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001627/0.1011, allocations: 1.127 MB / 358 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.1014, allocations: 154.6 kB / 358.2 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001301/0.1015, allocations: 87.23 kB / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.1016, allocations: 3.938 kB / 358.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003106/0.1019, allocations: 161.2 kB / 358.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.825e-06/0.1019, allocations: 3.984 kB / 358.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001013/0.1029, allocations: 387.2 kB / 358.8 MB, free: 11.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.877e-05/0.103, allocations: 110.8 kB / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.1032, allocations: 221 kB / 359.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.722e-05/0.1033, allocations: 29.7 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001195/0.1034, allocations: 180.1 kB / 359.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.606e-05/0.1034, allocations: 78.94 kB / 359.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.111e-05/0.1035, allocations: 57.7 kB / 359.5 MB, free: 11.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.1037, allocations: 334.8 kB / 359.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1038, allocations: 67.97 kB / 359.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.104, allocations: 148.6 kB / 360 MB, free: 10.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002593/0.1043, allocations: 188.2 kB / 360.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/0.1043, allocations: 4 kB / 360.2 MB, free: 10.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000437/0.1047, allocations: 272.4 kB / 360.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.1047, allocations: 4 kB / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.1047, allocations: 4 kB / 360.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000262/0.105, allocations: 53.03 kB / 360.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.1053, allocations: 59.84 kB / 360.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001357/0.1066, allocations: 1.568 MB / 362.2 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002284/0.1069, allocations: 39.77 kB / 362.2 MB, free: 8.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.27e-05/0.1069, allocations: 16 kB / 362.2 MB, free: 8.195 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.0001557/0.1071, allocations: 145.7 kB / 362.4 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.826e-05/0.1071, allocations: 23.72 kB / 362.4 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.1072, allocations: 26.17 kB / 362.4 MB, free: 8 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.1072, allocations: 4 kB / 362.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.1072, allocations: 0 / 362.4 MB, free: 7.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.1072, allocations: 7.984 kB / 362.4 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.1075, allocations: 317.4 kB / 362.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1075, allocations: 0 / 362.7 MB, free: 7.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.1077, allocations: 31.98 kB / 362.8 MB, free: 7.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000184/0.1079, allocations: 52.75 kB / 362.8 MB, free: 7.543 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.17e-05/0.1079, allocations: 8 kB / 362.8 MB, free: 7.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001153/0.1091, allocations: 1.43 MB / 364.3 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1091, allocations: 3.938 kB / 364.3 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006185/0.1097, allocations: 322.9 kB / 364.6 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001135/0.1098, allocations: 124.8 kB / 364.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.615e-05/0.1099, allocations: 4 kB / 364.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001679/0.1101, allocations: 19.98 kB / 364.7 MB, free: 5.457 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.1102, allocations: 27.95 kB / 364.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/0.1102, allocations: 4 kB / 364.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001307/0.1103, allocations: 160.5 kB / 364.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1103, allocations: 4 kB / 364.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003607/0.1107, allocations: 75.84 kB / 365 MB, free: 5.191 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.0001311/0.1108, allocations: 111.7 kB / 365.1 MB, free: 5.074 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005808/0.1114, allocations: 296.2 kB / 365.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.1114, allocations: 0 / 365.4 MB, free: 4.773 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000265/0.1117, allocations: 198.6 kB / 365.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.112, allocations: 40.8 kB / 365.6 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.1136, allocations: 0.7818 MB / 366.4 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.114, allocations: 0.7558 MB / 367.2 MB, free: 2.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.797e-05/0.114, allocations: 27.44 kB / 367.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of SimCode: time 4.8e-07/0.1141, allocations: 0 / 367.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of Templates: time 0.151/0.2651, allocations: 4.159 MB / 371.3 MB, free: 24.98 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches