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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002087/0.002087, allocations: 114.1 kB / 20.89 MB, free: 1.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001784/0.001784, allocations: 194.4 kB / 24.12 MB, free: 4.574 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 207.6 MB / 234.8 MB, free: 11.02 MB / 190.1 MB " [Timeout remaining time 178] 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=8000,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=8000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc") [Timeout 660] "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.001873/0.001873, allocations: 54.11 kB / 346.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2923, allocations: 49.12 MB / 396.1 MB, free: 9.777 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003831/0.2961, allocations: 2.85 MB / 398.9 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001399/0.2975, allocations: 0.7858 MB / 399.7 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.2976, allocations: 9.188 kB / 399.7 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000175/0.2978, allocations: 51.22 kB / 399.8 MB, free: 7.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001824/0.298, allocations: 91.42 kB / 399.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000348/0.2983, allocations: 106.7 kB / 400 MB, free: 7.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003591/0.2987, allocations: 372.3 kB / 400.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001878/0.2989, allocations: 88.48 kB / 400.4 MB, free: 6.793 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001495/0.299, allocations: 140.5 kB / 400.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.2992, allocations: 150.6 kB / 400.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.399e-05/0.2993, allocations: 30.25 kB / 400.7 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.86e-05/0.2993, allocations: 30.56 kB / 400.8 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.661e-05/0.2994, allocations: 75.02 kB / 400.8 MB, free: 6.602 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.2996, allocations: 166.1 kB / 401 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004404/0.3, allocations: 364.6 kB / 401.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.3, allocations: 4 kB / 401.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3, allocations: 0.8438 kB / 401.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.158e-05/0.3, allocations: 0 / 401.3 MB, free: 6.359 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.0009835/0.301, allocations: 0.6194 MB / 402 MB, free: 5.852 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.3011, allocations: 7.719 kB / 402 MB, free: 5.852 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.431e-05/0.3011, allocations: 35.52 kB / 402 MB, free: 5.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003475/0.3015, allocations: 264.9 kB / 402.3 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-05/0.3016, allocations: 75.41 kB / 402.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.562e-05/0.3016, allocations: 31.59 kB / 402.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/0.3021, allocations: 301.2 kB / 402.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.859e-05/0.3022, allocations: 1.219 kB / 402.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.666e-05/0.3022, allocations: 15.2 kB / 402.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.3022, allocations: 7.062 kB / 402.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000418/0.3026, allocations: 189.2 kB / 402.9 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001799/0.3044, allocations: 1.126 MB / 404 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003691/0.3048, allocations: 153.8 kB / 404.2 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001503/0.305, allocations: 74.28 kB / 404.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.305, allocations: 1.094 kB / 404.2 MB, free: 4.336 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002929/0.3053, allocations: 168.4 kB / 404.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.3053, allocations: 0 / 404.4 MB, free: 4.219 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001168/0.3064, allocations: 383.4 kB / 404.8 MB, free: 4.004 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.3065, allocations: 110.4 kB / 404.9 MB, free: 3.875 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002793/0.3068, allocations: 226 kB / 405.1 MB, free: 3.734 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.3068, allocations: 31.55 kB / 405.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.3069, allocations: 180.4 kB / 405.3 MB, free: 3.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.199e-05/0.307, allocations: 70.69 kB / 405.4 MB, free: 3.492 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001066/0.3071, allocations: 63.44 kB / 405.4 MB, free: 3.449 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.285e-05/0.3072, allocations: 339.8 kB / 405.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001506/0.3073, allocations: 70.34 kB / 405.8 MB, free: 3.094 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001983/0.3075, allocations: 142.4 kB / 406 MB, free: 2.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.3078, allocations: 187 kB / 406.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3078, allocations: 0 / 406.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000432/0.3083, allocations: 278.7 kB / 406.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.3083, allocations: 5.75 kB / 406.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.732e-06/0.3083, allocations: 1.938 kB / 406.4 MB, free: 2.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002831/0.3086, allocations: 53.47 kB / 406.5 MB, free: 2.695 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.3088, allocations: 59.23 kB / 406.5 MB, free: 2.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.3098, allocations: 1.57 MB / 408.1 MB, free: 1.109 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002439/0.3101, allocations: 39.09 kB / 408.1 MB, free: 1.09 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.281e-05/0.3101, allocations: 13.52 kB / 408.2 MB, free: 1.086 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.0001154/0.3102, allocations: 147.9 kB / 408.3 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.392e-05/0.3103, allocations: 28.98 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.538e-05/0.3103, allocations: 29.08 kB / 408.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.3103, allocations: 2.688 kB / 408.4 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3103, allocations: 3.938 kB / 408.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.425e-05/0.3104, allocations: 112.1 kB / 408.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.379e-05/0.3104, allocations: 7.312 kB / 408.5 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/0.3106, allocations: 21.69 kB / 408.5 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.561e-05/0.3107, allocations: 19.92 kB / 408.5 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0005633/0.3112, allocations: 298.4 kB / 408.8 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0004727/0.3117, allocations: 425.1 kB / 409.2 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001389/0.3119, allocations: 63.73 kB / 409.3 MB, free: 276 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.312, allocations: 162.2 kB / 409.5 MB, free: 168 kB / 318.1 MB Notification: Performance of Backend: time 8.42e-07/0.312, allocations: 4 kB / 409.5 MB, free: 164 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008774/0.3129, allocations: 301.3 kB / 409.8 MB, free: 15.95 MB / 334.1 MB Notification: Performance of SimCode: time 0.001385/0.3143, allocations: 1.032 MB / 410.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of Templates: time 0.008851/0.3231, allocations: 3.291 MB / 414.1 MB, free: 13.85 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/SwitchWithArc/SwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.653243630018551]