Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001252/0.001252, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001435/0.001435, allocations: 185.2 kB / 19.33 MB, free: 3.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.456/1.456, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 44.41 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1241, allocations: 46.61 MB / 375.8 MB, free: 4.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00617/0.1303, allocations: 2.832 MB / 378.6 MB, free: 1.723 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001828/0.1322, allocations: 0.7756 MB / 379.4 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003291/0.1325, allocations: 4 kB / 379.4 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002541/0.1328, allocations: 51.44 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003856/0.1332, allocations: 95.19 kB / 379.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005209/0.1337, allocations: 95.81 kB / 379.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005206/0.1343, allocations: 374.3 kB / 380 MB, free: 336 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002796/0.1346, allocations: 123.3 kB / 380.1 MB, free: 208 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002545/0.1348, allocations: 139.5 kB / 380.3 MB, free: 68 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2817/0.4165, allocations: 147.8 kB / 380.4 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001601/0.4168, allocations: 30.66 kB / 380.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001433/0.4169, allocations: 30.19 kB / 380.5 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.338e-05/0.417, allocations: 72.03 kB / 380.6 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.4173, allocations: 161.7 kB / 380.7 MB, free: 9.953 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006528/0.4179, allocations: 365.5 kB / 381.1 MB, free: 9.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.328e-06/0.418, allocations: 0 / 381.1 MB, free: 9.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.308e-06/0.418, allocations: 3.969 kB / 381.1 MB, free: 9.918 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.682e-05/0.418, allocations: 1.375 kB / 381.1 MB, free: 9.918 MB / 318.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.001245/0.4193, allocations: 0.6033 MB / 381.7 MB, free: 9.473 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.367e-05/0.4193, allocations: 10.16 kB / 381.7 MB, free: 9.473 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001109/0.4194, allocations: 37.8 kB / 381.7 MB, free: 9.457 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004963/0.42, allocations: 264.9 kB / 382 MB, free: 9.238 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-05/0.42, allocations: 78.23 kB / 382.1 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.674e-05/0.4201, allocations: 29.31 kB / 382.1 MB, free: 9.176 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000657/0.4208, allocations: 299.1 kB / 382.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.624e-05/0.4208, allocations: 0 / 382.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.288e-05/0.4209, allocations: 15.27 kB / 382.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.173e-05/0.4209, allocations: 7.438 kB / 382.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004233/0.4213, allocations: 193.6 kB / 382.6 MB, free: 9.102 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00201/0.4233, allocations: 1.123 MB / 383.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004127/0.4238, allocations: 155.3 kB / 383.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.424, allocations: 79.34 kB / 383.9 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.253e-05/0.424, allocations: 2.125 kB / 384 MB, free: 8.457 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003245/0.4243, allocations: 167.2 kB / 384.1 MB, free: 8.379 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.492e-06/0.4243, allocations: 0 / 384.1 MB, free: 8.379 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.00122/0.4256, allocations: 381.4 kB / 384.5 MB, free: 8.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.155e-05/0.4256, allocations: 111.3 kB / 384.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002812/0.4259, allocations: 227.8 kB / 384.8 MB, free: 8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/0.426, allocations: 31.58 kB / 384.8 MB, free: 7.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.4261, allocations: 183.6 kB / 385 MB, free: 7.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.687e-05/0.4262, allocations: 61.12 kB / 385.1 MB, free: 7.805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.4263, allocations: 61.53 kB / 385.1 MB, free: 7.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.357e-05/0.4264, allocations: 338.1 kB / 385.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001405/0.4265, allocations: 65.78 kB / 385.5 MB, free: 7.469 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002116/0.4267, allocations: 149.6 kB / 385.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.427, allocations: 189.4 kB / 385.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.427, allocations: 5.062 kB / 385.9 MB, free: 7.312 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004824/0.4275, allocations: 271.1 kB / 386.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/0.4276, allocations: 6.812 kB / 386.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4276, allocations: 1.375 kB / 386.2 MB, free: 7.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003622/0.4279, allocations: 55.47 kB / 386.2 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002516/0.4282, allocations: 50.3 kB / 386.3 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.4295, allocations: 1.575 MB / 387.8 MB, free: 5.688 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002431/0.4297, allocations: 42.91 kB / 387.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.158e-05/0.4298, allocations: 8.594 kB / 387.9 MB, free: 5.664 MB / 318.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.0001472/0.4299, allocations: 156.8 kB / 388 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.282e-05/0.43, allocations: 24.11 kB / 388.1 MB, free: 5.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.192e-05/0.43, allocations: 25.7 kB / 388.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.43, allocations: 2.938 kB / 388.1 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.43, allocations: 4 kB / 388.1 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.4301, allocations: 1.406 kB / 388.1 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004231/0.4305, allocations: 325.7 kB / 388.4 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.104e-06/0.4305, allocations: 0 / 388.4 MB, free: 5.238 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001801/0.4307, allocations: 38.67 kB / 388.4 MB, free: 5.234 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000198/0.4309, allocations: 51.86 kB / 388.5 MB, free: 5.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.264e-05/0.4309, allocations: 7.328 kB / 388.5 MB, free: 5.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009731/0.4319, allocations: 1.423 MB / 389.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.4319, allocations: 0 / 389.9 MB, free: 3.793 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006701/0.4326, allocations: 321.9 kB / 390.2 MB, free: 3.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001002/0.4327, allocations: 116 kB / 390.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.066e-05/0.4328, allocations: 15.02 kB / 390.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.4329, allocations: 13.2 kB / 390.4 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.433, allocations: 33.17 kB / 390.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.4331, allocations: 5.062 kB / 390.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.4333, allocations: 161.9 kB / 390.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4333, allocations: 0 / 390.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.4337, allocations: 86.28 kB / 390.7 MB, free: 3.363 MB / 318.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.0001263/0.4338, allocations: 110.8 kB / 390.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.4344, allocations: 290.8 kB / 391.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4344, allocations: 0 / 391.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002821/0.4347, allocations: 191.2 kB / 391.2 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003175/0.435, allocations: 43.39 kB / 391.3 MB, free: 2.957 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001698/0.4367, allocations: 0.673 MB / 392 MB, free: 2.559 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.437, allocations: 0.7578 MB / 392.7 MB, free: 1.859 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.651e-05/0.4371, allocations: 22.23 kB / 392.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.4371, allocations: 1.125 kB / 392.7 MB, free: 1.852 MB / 318.1 MB Notification: Performance of Templates: time 0.008685/0.4458, allocations: 4.229 MB / 397 MB, free: 1.5 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches