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.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.005001/0.005001, allocations: 114 kB / 21.97 MB, free: 5.227 MB / 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.001427/0.001427, allocations: 212.3 kB / 25.28 MB, free: 3.25 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.317/1.317, allocations: 207.6 MB / 236 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [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.00166/0.00166, allocations: 56.3 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.231/0.2326, allocations: 49.16 MB / 397.1 MB, free: 9.215 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.003152/0.2358, allocations: 2.846 MB / 400 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.2369, allocations: 0.7814 MB / 400.8 MB, free: 6.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001223/0.237, allocations: 12.75 kB / 400.8 MB, free: 6.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001381/0.2371, allocations: 52.42 kB / 400.8 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001434/0.2373, allocations: 86.19 kB / 400.9 MB, free: 6.543 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.2375, allocations: 108.3 kB / 401 MB, free: 6.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003203/0.2379, allocations: 379 kB / 401.4 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.238, allocations: 89 kB / 401.5 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000126/0.2381, allocations: 147.4 kB / 401.6 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001822/0.2383, allocations: 151.2 kB / 401.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.731e-05/0.2384, allocations: 29.84 kB / 401.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.002e-05/0.2384, allocations: 30.78 kB / 401.8 MB, free: 6.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.403e-05/0.2385, allocations: 74.7 kB / 401.9 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.2386, allocations: 160.9 kB / 402.1 MB, free: 5.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003618/0.239, allocations: 368.2 kB / 402.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.596e-06/0.239, allocations: 0 / 402.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.239, allocations: 0 / 402.4 MB, free: 5.805 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.239, allocations: 1.25 kB / 402.4 MB, free: 5.805 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.0008182/0.2398, allocations: 0.5395 MB / 403 MB, free: 5.395 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.2398, allocations: 13.02 kB / 403 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.569e-05/0.2398, allocations: 12.77 kB / 403 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.09e-05/0.2399, allocations: 67.3 kB / 403.1 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.295e-05/0.24, allocations: 39.42 kB / 403.1 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002878/0.2402, allocations: 200.2 kB / 403.3 MB, free: 5.133 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.294e-05/0.2403, allocations: 130.8 kB / 403.4 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.2404, allocations: 35.64 kB / 403.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.2408, allocations: 292.8 kB / 403.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.2408, allocations: 1.375 kB / 403.7 MB, free: 4.832 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.2408, allocations: 14.78 kB / 403.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.2408, allocations: 6.969 kB / 403.8 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003112/0.2411, allocations: 190.3 kB / 403.9 MB, free: 4.758 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001396/0.2425, allocations: 1.084 MB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002814/0.2428, allocations: 156 kB / 405.2 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.2429, allocations: 76.88 kB / 405.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.038e-05/0.2429, allocations: 2.094 kB / 405.3 MB, free: 3.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002161/0.2432, allocations: 154.6 kB / 405.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.342e-06/0.2432, allocations: 0 / 405.4 MB, free: 3.742 MB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.0009476/0.2441, allocations: 309.4 kB / 405.7 MB, free: 3.617 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.2441, allocations: 110.3 kB / 405.8 MB, free: 3.488 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001907/0.2443, allocations: 229.4 kB / 406 MB, free: 3.34 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2444, allocations: 32.73 kB / 406.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.885e-05/0.2444, allocations: 183.9 kB / 406.3 MB, free: 3.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.368e-05/0.2445, allocations: 70.98 kB / 406.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.2446, allocations: 64.17 kB / 406.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.707e-05/0.2446, allocations: 334.4 kB / 406.7 MB, free: 2.727 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.2447, allocations: 66.92 kB / 406.8 MB, free: 2.703 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.2449, allocations: 149.8 kB / 406.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002256/0.2451, allocations: 187.5 kB / 407.1 MB, free: 2.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.2451, allocations: 0 / 407.1 MB, free: 2.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0003987/0.2455, allocations: 274.1 kB / 407.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.668e-05/0.2455, allocations: 5.344 kB / 407.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.2455, allocations: 2.844 kB / 407.4 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000263/0.2458, allocations: 54.92 kB / 407.4 MB, free: 2.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002071/0.246, allocations: 53.42 kB / 407.5 MB, free: 2.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009632/0.247, allocations: 1.464 MB / 409 MB, free: 0.8516 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.2472, allocations: 39.47 kB / 409 MB, free: 0.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.2472, allocations: 9.469 kB / 409 MB, free: 0.832 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.0001139/0.2473, allocations: 147.5 kB / 409.1 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.297e-05/0.2474, allocations: 29 kB / 409.2 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.186e-05/0.2474, allocations: 24.92 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.2474, allocations: 3.594 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.2474, allocations: 0.6094 kB / 409.2 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2474, allocations: 8.641 kB / 409.2 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002798/0.2477, allocations: 302.3 kB / 409.5 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.2477, allocations: 3.938 kB / 409.5 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/0.2478, allocations: 30.81 kB / 409.5 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001734/0.248, allocations: 47.67 kB / 409.6 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.248, allocations: 10.5 kB / 409.6 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001113/0.2492, allocations: 1.321 MB / 410.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2492, allocations: 0 / 410.9 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006161/0.2498, allocations: 329.6 kB / 411.2 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.384e-05/0.2499, allocations: 42.59 kB / 411.3 MB, free: 14.89 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.655e-05/0.2499, allocations: 11.67 kB / 411.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001639/0.2501, allocations: 21.5 kB / 411.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.603e-05/0.2501, allocations: 29.58 kB / 411.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.364e-05/0.2502, allocations: 5.578 kB / 411.3 MB, free: 14.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001455/0.2503, allocations: 161.2 kB / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2503, allocations: 0 / 411.5 MB, free: 14.76 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003639/0.2507, allocations: 82.81 kB / 411.6 MB, free: 14.74 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.0009477/0.2516, allocations: 0.8589 MB / 412.4 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005303/0.2521, allocations: 284.9 kB / 412.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2521, allocations: 0 / 412.7 MB, free: 13.87 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002732/0.2524, allocations: 188.5 kB / 412.9 MB, free: 13.73 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.2527, allocations: 33.17 kB / 412.9 MB, free: 13.72 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.2563, allocations: 2.605 MB / 415.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003691/0.2567, allocations: 0.7577 MB / 416.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001091/0.2568, allocations: 24.22 kB / 416.3 MB, free: 11.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.2569, allocations: 83.16 kB / 416.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.2569, allocations: 0 / 416.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03284/0.2898, allocations: 5.905 MB / 422.3 MB, free: 8.121 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.23/12.52, allocations: 2.75 kB / 422.3 MB, free: 8.121 MB / 334.1 MB " [Timeout remaining time 647] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.820067400985863] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.68332150101196 12.698199728 12.456357043 Calling exit ...