Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001451/0.001451, allocations: 112.2 kB / 21.94 MB, free: 12 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 200.8 kB / 25.24 MB, free: 3.539 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.594/1.594, allocations: 207.6 MB / 236 MB, free: 10.87 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=24000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001875/0.001875, allocations: 51.92 kB / 348.4 MB, free: 9.645 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3188, allocations: 49.17 MB / 397.6 MB, free: 9.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004364/0.3232, allocations: 3.111 MB / 400.7 MB, free: 7.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.3247, allocations: 0.8049 MB / 401.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002172/0.325, allocations: 5.688 kB / 401.5 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002157/0.3252, allocations: 55.69 kB / 401.6 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002201/0.3254, allocations: 100.8 kB / 401.7 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004161/0.3258, allocations: 115.7 kB / 401.8 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004957/0.3263, allocations: 420.2 kB / 402.2 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002271/0.3265, allocations: 108.1 kB / 402.3 MB, free: 6.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002297/0.3268, allocations: 167 kB / 402.5 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000234/0.327, allocations: 173.9 kB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.666e-05/0.327, allocations: 35.5 kB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.511e-05/0.3271, allocations: 34.53 kB / 402.7 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.726e-05/0.3272, allocations: 88.84 kB / 402.8 MB, free: 6.086 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002121/0.3274, allocations: 182.4 kB / 403 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006701/0.3281, allocations: 422.2 kB / 403.4 MB, free: 5.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.423e-06/0.3281, allocations: 8 kB / 403.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.554e-06/0.3281, allocations: 1 kB / 403.4 MB, free: 5.812 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.127e-05/0.3281, allocations: 0 / 403.4 MB, free: 5.812 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001292/0.3294, allocations: 0.5771 MB / 404 MB, free: 5.383 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.3295, allocations: 18.17 kB / 404 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001191/0.3296, allocations: 44.56 kB / 404 MB, free: 5.352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004933/0.3301, allocations: 221.4 kB / 404.3 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001041/0.3302, allocations: 131.9 kB / 404.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.592e-05/0.3303, allocations: 32.47 kB / 404.4 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007846/0.331, allocations: 343.5 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.878e-05/0.3311, allocations: 1.031 kB / 404.8 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.162e-05/0.3311, allocations: 11.92 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.091e-05/0.3311, allocations: 7.844 kB / 404.8 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000576/0.3317, allocations: 221.5 kB / 405 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.3341, allocations: 1.319 MB / 406.3 MB, free: 3.762 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004462/0.3345, allocations: 163.1 kB / 406.5 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.3348, allocations: 85.8 kB / 406.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.404e-05/0.3348, allocations: 2.062 kB / 406.6 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003817/0.3352, allocations: 160.9 kB / 406.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 2.465e-06/0.3352, allocations: 0 / 406.7 MB, free: 3.531 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001426/0.3366, allocations: 323.2 kB / 407 MB, free: 3.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.591e-05/0.3367, allocations: 110.2 kB / 407.1 MB, free: 3.277 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003417/0.337, allocations: 265.9 kB / 407.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.337, allocations: 27.14 kB / 407.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.3372, allocations: 209.6 kB / 407.6 MB, free: 2.91 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.764e-05/0.3372, allocations: 72.03 kB / 407.7 MB, free: 2.855 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001212/0.3374, allocations: 65.66 kB / 407.8 MB, free: 2.812 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.126e-05/0.3374, allocations: 341.5 kB / 408.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002223/0.3377, allocations: 74.98 kB / 408.2 MB, free: 2.461 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.3379, allocations: 185.7 kB / 408.4 MB, free: 2.305 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004269/0.3384, allocations: 233.4 kB / 408.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.3384, allocations: 1.375 kB / 408.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009213/0.3393, allocations: 346.1 kB / 408.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3393, allocations: 5.5 kB / 408.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/0.3393, allocations: 3.359 kB / 408.9 MB, free: 1.977 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003539/0.3397, allocations: 60.38 kB / 409 MB, free: 1.953 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003495/0.34, allocations: 60.03 kB / 409 MB, free: 1.949 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.3414, allocations: 1.461 MB / 410.5 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000381/0.3418, allocations: 45.78 kB / 410.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.925e-05/0.3418, allocations: 15.39 kB / 410.6 MB, free: 500 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (switch2.tSwitch,$PRE.switch2.tSwitch,switch2.quenched,$PRE.switch2.quenched,switch2.off,$PRE.switch2.off,switch1.off,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (38): * Single equations (assignments): 37 * 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.0001976/0.342, allocations: 154.9 kB / 410.7 MB, free: 352 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.409e-05/0.3421, allocations: 29.7 kB / 410.7 MB, free: 336 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.666e-05/0.3422, allocations: 38.91 kB / 410.8 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.601e-06/0.3422, allocations: 2.969 kB / 410.8 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3422, allocations: 0.8906 kB / 410.8 MB, free: 300 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.3422, allocations: 4.594 kB / 410.8 MB, free: 296 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004863/0.3427, allocations: 311.7 kB / 411.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3427, allocations: 0 / 411.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002534/0.3429, allocations: 33.64 kB / 411.1 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002405/0.3432, allocations: 55.48 kB / 411.2 MB, free: 44 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3432, allocations: 10.55 kB / 411.2 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001736/0.3449, allocations: 1.321 MB / 412.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.3449, allocations: 0 / 412.5 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009689/0.3459, allocations: 350.7 kB / 412.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.3461, allocations: 49.22 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.157e-05/0.3461, allocations: 6.469 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002246/0.3463, allocations: 16.34 kB / 412.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.3465, allocations: 36.36 kB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.3e-05/0.3465, allocations: 4.375 kB / 413 MB, free: 14.5 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003176/0.3468, allocations: 185 kB / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3468, allocations: 0 / 413.2 MB, free: 14.39 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006974/0.3475, allocations: 89.19 kB / 413.2 MB, free: 14.38 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: 5 ($whenCondition1,switch1.off,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): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.000195/0.3477, allocations: 106.1 kB / 413.3 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009678/0.3487, allocations: 297 kB / 413.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3487, allocations: 0 / 413.6 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004402/0.3491, allocations: 201.2 kB / 413.8 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004068/0.3495, allocations: 37.12 kB / 413.9 MB, free: 13.95 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002473/0.352, allocations: 0.7112 MB / 414.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.3526, allocations: 0.7732 MB / 415.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.3527, allocations: 32.53 kB / 415.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3527, allocations: 0 / 415.4 MB, free: 12.77 MB / 334.1 MB Notification: Performance of Templates: time 0.01297/0.3657, allocations: 4.67 MB / 420.1 MB, free: 10.37 MB / 334.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/ControlledSwitchWithArc/ControlledSwitchWithArc.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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: 8.143753015203401]