Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001465/0.001465, allocations: 113 kB / 18.49 MB, free: 4.539 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.001579/0.001579, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00177/0.00177, allocations: 51.91 kB / 373.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1108, allocations: 53.33 MB / 427 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004781/0.1156, allocations: 3.168 MB / 430.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.1173, allocations: 0.8217 MB / 431 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.1174, allocations: 11.94 kB / 431 MB, free: 0.7461 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.1176, allocations: 59.44 kB / 431.1 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002027/0.1178, allocations: 103 kB / 431.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004139/0.1182, allocations: 119.8 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004637/0.1187, allocations: 422.1 kB / 431.7 MB, free: 56 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.119, allocations: 99.75 kB / 431.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002583/0.1193, allocations: 167.4 kB / 432 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002505/0.1195, allocations: 179.2 kB / 432.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.1196, allocations: 36 kB / 432.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.313e-05/0.1196, allocations: 36 kB / 432.2 MB, free: 15.54 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.125e-05/0.1197, allocations: 75.75 kB / 432.3 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.12, allocations: 199 kB / 432.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004956/0.1205, allocations: 430.2 kB / 432.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1205, allocations: 0 / 432.9 MB, free: 14.85 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1205, allocations: 4 kB / 432.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.18e-05/0.1205, allocations: 0 / 432.9 MB, free: 14.84 MB / 366.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.001115/0.1216, allocations: 0.6584 MB / 433.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.1217, allocations: 8.031 kB / 433.6 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.94e-05/0.1217, allocations: 8.844 kB / 433.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.685e-05/0.1218, allocations: 74.72 kB / 433.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000189/0.1219, allocations: 56.64 kB / 433.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004294/0.1224, allocations: 281.4 kB / 434 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.867e-05/0.1225, allocations: 76.62 kB / 434.1 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.277e-05/0.1225, allocations: 40.11 kB / 434.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006495/0.1232, allocations: 342.7 kB / 434.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.1232, allocations: 4 kB / 434.5 MB, free: 13.19 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.078e-05/0.1232, allocations: 8 kB / 434.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.1232, allocations: 11.94 kB / 434.5 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004719/0.1237, allocations: 222.5 kB / 434.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001942/0.1257, allocations: 1.356 MB / 436.1 MB, free: 11.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003551/0.126, allocations: 166.4 kB / 436.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001636/0.1262, allocations: 80.83 kB / 436.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.1262, allocations: 0 / 436.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002935/0.1265, allocations: 161.8 kB / 436.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.403e-06/0.1265, allocations: 0 / 436.5 MB, free: 11.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001184/0.1277, allocations: 409.4 kB / 436.9 MB, free: 10.64 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.1278, allocations: 102.8 kB / 437 MB, free: 10.51 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003222/0.1281, allocations: 266.6 kB / 437.2 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1281, allocations: 29.7 kB / 437.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001694/0.1283, allocations: 220.3 kB / 437.5 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.709e-05/0.1284, allocations: 71.39 kB / 437.5 MB, free: 9.922 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.1285, allocations: 66.02 kB / 437.6 MB, free: 9.852 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1286, allocations: 334.8 kB / 437.9 MB, free: 9.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001676/0.1288, allocations: 76.56 kB / 438 MB, free: 9.441 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002448/0.129, allocations: 185.5 kB / 438.2 MB, free: 9.215 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000371/0.1294, allocations: 235.5 kB / 438.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.1294, allocations: 0 / 438.4 MB, free: 8.949 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007109/0.1301, allocations: 348.2 kB / 438.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.689e-05/0.1301, allocations: 4 kB / 438.7 MB, free: 8.598 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.1302, allocations: 4 kB / 438.8 MB, free: 8.594 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002919/0.1305, allocations: 65.09 kB / 438.8 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002584/0.1307, allocations: 59.91 kB / 438.9 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001676/0.1324, allocations: 1.572 MB / 440.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002507/0.1326, allocations: 51.84 kB / 440.5 MB, free: 6.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.1327, allocations: 15.98 kB / 440.5 MB, free: 6.691 MB / 366.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.0001711/0.1328, allocations: 151.9 kB / 440.7 MB, free: 6.535 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.1329, allocations: 27.8 kB / 440.7 MB, free: 6.508 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.721e-05/0.1329, allocations: 38.11 kB / 440.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1329, allocations: 0 / 440.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.1329, allocations: 0 / 440.7 MB, free: 6.465 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.906e-06/0.1329, allocations: 8 kB / 440.7 MB, free: 6.457 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003561/0.1333, allocations: 337.3 kB / 441.1 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/0.1333, allocations: 4 kB / 441.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.1335, allocations: 35.92 kB / 441.1 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001927/0.1337, allocations: 48.81 kB / 441.1 MB, free: 5.988 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.1337, allocations: 12 kB / 441.2 MB, free: 5.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001286/0.135, allocations: 1.418 MB / 442.6 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.135, allocations: 0 / 442.6 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007285/0.1357, allocations: 352.7 kB / 442.9 MB, free: 4.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.1358, allocations: 121 kB / 443 MB, free: 3.922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.624e-05/0.1359, allocations: 8 kB / 443 MB, free: 3.914 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.136, allocations: 15.92 kB / 443.1 MB, free: 3.898 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.1361, allocations: 31.95 kB / 443.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/0.1362, allocations: 4 kB / 443.1 MB, free: 3.863 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001806/0.1363, allocations: 190 kB / 443.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1363, allocations: 0 / 443.3 MB, free: 3.676 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004147/0.1368, allocations: 87.84 kB / 443.4 MB, free: 3.59 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: 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.001091/0.1378, allocations: 0.8909 MB / 444.3 MB, free: 2.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006403/0.1385, allocations: 302.5 kB / 444.6 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1385, allocations: 0 / 444.6 MB, free: 2.355 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000325/0.1388, allocations: 205.8 kB / 444.8 MB, free: 2.145 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.1391, allocations: 43.08 kB / 444.8 MB, free: 2.105 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1927/0.3318, allocations: 2.906 MB / 447.7 MB, free: 23.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002929/0.3321, allocations: 0.7713 MB / 448.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.3323, allocations: 27.81 kB / 448.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.3325, allocations: 97.61 kB / 448.6 MB, free: 22.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.603e-06/0.3325, allocations: 0.875 kB / 448.6 MB, free: 22.64 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03369/0.3661, allocations: 6.138 MB / 454.7 MB, free: 22.1 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.99, allocations: 9.438 kB / 454.7 MB, free: 22.1 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.498958542011678] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.137195540009998 12.15723609 12.032604151 Calling exit ...