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.002466/0.002466, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003484/0.003483, allocations: 204.7 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.634/1.634, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 59.91 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3988/0.4002, allocations: 50.55 MB / 409.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004182/0.4045, allocations: 2.874 MB / 412.1 MB, free: 14.68 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001496/0.406, allocations: 0.7595 MB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001385/0.4061, allocations: 7.938 kB / 412.9 MB, free: 13.9 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001945/0.4063, allocations: 55.5 kB / 413 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.4065, allocations: 87.19 kB / 413 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003455/0.4069, allocations: 99.81 kB / 413.1 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003926/0.4073, allocations: 378.3 kB / 413.5 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.4075, allocations: 123.2 kB / 413.6 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.4077, allocations: 139.5 kB / 413.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.4079, allocations: 159.3 kB / 413.9 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.837e-05/0.408, allocations: 28 kB / 414 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.104e-05/0.408, allocations: 32 kB / 414 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.4081, allocations: 67.77 kB / 414 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.4083, allocations: 159.3 kB / 414.2 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003773/0.4087, allocations: 367.8 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.554e-06/0.4087, allocations: 4 kB / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4087, allocations: 0 / 414.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.4087, allocations: 0 / 414.6 MB, free: 12.23 MB / 334.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.00106/0.4098, allocations: 0.6056 MB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.791e-05/0.4098, allocations: 8.031 kB / 415.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.715e-05/0.4099, allocations: 36.56 kB / 415.2 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.4103, allocations: 268.3 kB / 415.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.537e-05/0.4104, allocations: 84.62 kB / 415.6 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.556e-05/0.4105, allocations: 28.31 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005163/0.411, allocations: 305.8 kB / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.294e-05/0.411, allocations: 0 / 415.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.549e-05/0.4111, allocations: 16 kB / 415.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.4111, allocations: 8 kB / 415.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003516/0.4114, allocations: 190.1 kB / 416.1 MB, free: 10.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.4131, allocations: 1.127 MB / 417.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000313/0.4134, allocations: 150.6 kB / 417.4 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.4135, allocations: 84.81 kB / 417.5 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.497e-05/0.4136, allocations: 11.88 kB / 417.5 MB, free: 9.121 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.4139, allocations: 155 kB / 417.6 MB, free: 8.949 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.333e-06/0.4139, allocations: 4 kB / 417.6 MB, free: 8.945 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001043/0.4149, allocations: 382.5 kB / 418 MB, free: 8.547 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.757e-05/0.415, allocations: 110.8 kB / 418.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/0.4152, allocations: 229 kB / 418.3 MB, free: 8.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.4152, allocations: 29.7 kB / 418.4 MB, free: 8.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.4154, allocations: 180.2 kB / 418.5 MB, free: 7.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.519e-05/0.4154, allocations: 67.08 kB / 418.6 MB, free: 7.898 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.628e-05/0.4155, allocations: 61.61 kB / 418.7 MB, free: 7.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.4156, allocations: 338.8 kB / 419 MB, free: 7.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001262/0.4158, allocations: 67.97 kB / 419.1 MB, free: 7.426 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.416, allocations: 141.5 kB / 419.2 MB, free: 7.254 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003045/0.4163, allocations: 196.2 kB / 419.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4163, allocations: 0 / 419.4 MB, free: 7.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004766/0.4168, allocations: 268.4 kB / 419.6 MB, free: 6.77 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.121e-05/0.4168, allocations: 4.219 kB / 419.7 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.429e-05/0.4168, allocations: 11.98 kB / 419.7 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003682/0.4172, allocations: 48.83 kB / 419.7 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002595/0.4175, allocations: 55.91 kB / 419.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001902/0.4194, allocations: 1.569 MB / 421.3 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.4197, allocations: 31.83 kB / 421.4 MB, free: 4.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.4197, allocations: 12 kB / 421.4 MB, free: 4.898 MB / 334.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.0002415/0.42, allocations: 149.6 kB / 421.5 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.628e-05/0.42, allocations: 31.69 kB / 421.6 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.45e-05/0.4201, allocations: 30.19 kB / 421.6 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4201, allocations: 4.062 kB / 421.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4201, allocations: 0 / 421.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.4201, allocations: 3.984 kB / 421.6 MB, free: 4.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003949/0.4205, allocations: 317.3 kB / 421.9 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.4205, allocations: 4 kB / 421.9 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001608/0.4207, allocations: 35.92 kB / 421.9 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001846/0.4209, allocations: 60.75 kB / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.4209, allocations: 0 / 422 MB, free: 4.211 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.4221, allocations: 1.422 MB / 423.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.4221, allocations: 4 kB / 423.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005991/0.4227, allocations: 325.6 kB / 423.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.973e-05/0.4228, allocations: 112.8 kB / 423.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.405e-05/0.4228, allocations: 4 kB / 423.9 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001604/0.423, allocations: 19.98 kB / 423.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.755e-05/0.4231, allocations: 31.89 kB / 423.9 MB, free: 2.121 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.4231, allocations: 8 kB / 423.9 MB, free: 2.113 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000155/0.4233, allocations: 164.5 kB / 424.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4233, allocations: 0 / 424.1 MB, free: 1.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003653/0.4237, allocations: 83.81 kB / 424.2 MB, free: 1.875 MB / 334.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.0001977/0.4239, allocations: 99.25 kB / 424.3 MB, free: 1.77 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005838/0.4244, allocations: 294 kB / 424.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.4245, allocations: 0 / 424.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002678/0.4247, allocations: 199 kB / 424.7 MB, free: 1.266 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003131/0.4251, allocations: 32.42 kB / 424.8 MB, free: 1.234 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.4267, allocations: 0.6474 MB / 425.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003697/0.427, allocations: 0.7634 MB / 426.2 MB, free: 15.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.777e-05/0.4271, allocations: 22.3 kB / 426.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.187e-05/0.4272, allocations: 23.44 kB / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.4272, allocations: 0 / 426.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of Templates: time 0.006936/0.4341, allocations: 3.103 MB / 429.3 MB, free: 12.65 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches