Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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.001274/0.001274, allocations: 115.7 kB / 18.49 MB, free: 4.566 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.00128/0.00128, allocations: 190.6 kB / 21.43 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 225.6 MB / 249.8 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001475, allocations: 59.91 kB / 366.4 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1034, allocations: 52.13 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004143/0.1076, allocations: 2.886 MB / 421.4 MB, free: 9.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.1089, allocations: 0.7439 MB / 422.1 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.109, allocations: 4 kB / 422.1 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.1091, allocations: 47.5 kB / 422.2 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.1093, allocations: 95.19 kB / 422.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003113/0.1096, allocations: 95.77 kB / 422.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003974/0.11, allocations: 374.4 kB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001886/0.1102, allocations: 91.28 kB / 422.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001586/0.1104, allocations: 139.6 kB / 422.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001979/0.1106, allocations: 155.3 kB / 423.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-05/0.1106, allocations: 28 kB / 423.1 MB, free: 7.914 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.095e-05/0.1107, allocations: 32 kB / 423.2 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.983e-05/0.1107, allocations: 71.69 kB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000157/0.1109, allocations: 167.2 kB / 423.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004198/0.1113, allocations: 366.5 kB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1113, allocations: 0 / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1113, allocations: 0 / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.803e-06/0.1113, allocations: 0 / 423.7 MB, free: 7.289 MB / 350.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.001051/0.1124, allocations: 0.617 MB / 424.4 MB, free: 6.625 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.691e-05/0.1124, allocations: 8.031 kB / 424.4 MB, free: 6.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.637e-05/0.1125, allocations: 12.83 kB / 424.4 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.475e-05/0.1125, allocations: 62.73 kB / 424.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.691e-05/0.1126, allocations: 36.75 kB / 424.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003638/0.113, allocations: 265 kB / 424.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.856e-05/0.113, allocations: 72.62 kB / 424.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.606e-05/0.1131, allocations: 36.12 kB / 424.8 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004792/0.1136, allocations: 293.8 kB / 425.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.1136, allocations: 3.938 kB / 425.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.1136, allocations: 16 kB / 425.2 MB, free: 5.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.1136, allocations: 8 kB / 425.2 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003606/0.114, allocations: 186.2 kB / 425.3 MB, free: 5.574 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.1157, allocations: 1.135 MB / 426.5 MB, free: 4.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002964/0.116, allocations: 150 kB / 426.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001353/0.1161, allocations: 72.83 kB / 426.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.714e-05/0.1161, allocations: 0 / 426.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002649/0.1164, allocations: 170.1 kB / 426.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.372e-06/0.1164, allocations: 0 / 426.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001077/0.1175, allocations: 381.4 kB / 427.2 MB, free: 3.543 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.933e-05/0.1175, allocations: 106.8 kB / 427.3 MB, free: 3.414 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/0.1178, allocations: 224.9 kB / 427.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.1178, allocations: 37.64 kB / 427.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.1179, allocations: 188.5 kB / 427.8 MB, free: 2.953 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.916e-05/0.118, allocations: 71.36 kB / 427.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.261e-05/0.1181, allocations: 57.69 kB / 427.9 MB, free: 2.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.1182, allocations: 342.8 kB / 428.2 MB, free: 2.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001241/0.1184, allocations: 63.97 kB / 428.3 MB, free: 2.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001876/0.1185, allocations: 144.5 kB / 428.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002875/0.1188, allocations: 188.9 kB / 428.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1188, allocations: 0 / 428.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004483/0.1193, allocations: 276.5 kB / 428.9 MB, free: 1.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.1193, allocations: 11.98 kB / 428.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1193, allocations: 0 / 428.9 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000266/0.1196, allocations: 61.03 kB / 429 MB, free: 1.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.1198, allocations: 47.92 kB / 429 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001469/0.1213, allocations: 1.568 MB / 430.6 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002306/0.1215, allocations: 35.86 kB / 430.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.1215, allocations: 12 kB / 430.6 MB, free: 15.88 MB / 366.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.0001701/0.1217, allocations: 162.4 kB / 430.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.982e-05/0.1217, allocations: 23.86 kB / 430.8 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.368e-05/0.1218, allocations: 26.19 kB / 430.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.1218, allocations: 4 kB / 430.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.1218, allocations: 3.938 kB / 430.8 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.53e-06/0.1218, allocations: 3.984 kB / 430.9 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003422/0.1221, allocations: 321.3 kB / 431.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.1221, allocations: 0 / 431.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001732/0.1223, allocations: 35.92 kB / 431.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001921/0.1225, allocations: 52.81 kB / 431.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.1225, allocations: 4 kB / 431.3 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001298/0.1238, allocations: 1.418 MB / 432.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1238, allocations: 0 / 432.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006481/0.1245, allocations: 331.3 kB / 433 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.1246, allocations: 116.8 kB / 433.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.974e-05/0.1246, allocations: 8 kB / 433.1 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001685/0.1248, allocations: 15.98 kB / 433.1 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.278e-05/0.1248, allocations: 32.02 kB / 433.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.415e-05/0.1249, allocations: 4 kB / 433.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001505/0.125, allocations: 164.5 kB / 433.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.125, allocations: 0 / 433.3 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003622/0.1254, allocations: 79.89 kB / 433.4 MB, free: 12.86 MB / 366.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.0009963/0.1264, allocations: 0.872 MB / 434.3 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005395/0.1269, allocations: 278.5 kB / 434.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1269, allocations: 3.938 kB / 434.6 MB, free: 11.67 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002881/0.1272, allocations: 197.5 kB / 434.7 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.1275, allocations: 32.92 kB / 434.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003765/0.1312, allocations: 2.614 MB / 437.4 MB, free: 8.688 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.1316, allocations: 0.7559 MB / 438.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.26e-05/0.1317, allocations: 22.3 kB / 438.2 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001241/0.1318, allocations: 83.41 kB / 438.3 MB, free: 7.801 MB / 366.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1318, allocations: 0 / 438.3 MB, free: 7.801 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04132/0.1731, allocations: 5.731 MB / 444 MB, free: 2.242 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/11.72, allocations: 7.188 kB / 444 MB, free: 2.238 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.249456157034729] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.864650688017718 12.031304373 11.917943257 Calling exit ...