Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.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.001281/0.001281, allocations: 106 kB / 18.49 MB, free: 4.543 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.001369/0.001369, allocations: 197 kB / 21.43 MB, free: 1.609 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.408/1.408, allocations: 225.6 MB / 249.8 MB, free: 3.609 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.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 47.92 kB / 366.4 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1031, allocations: 52.14 MB / 418.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004388/0.1075, allocations: 3.151 MB / 421.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001308/0.1088, allocations: 0.7556 MB / 422.4 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.1089, allocations: 8 kB / 422.4 MB, free: 8.648 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001733/0.1091, allocations: 55.42 kB / 422.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1093, allocations: 111 kB / 422.6 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004065/0.1097, allocations: 103.8 kB / 422.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00046/0.1101, allocations: 422.1 kB / 423.1 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002473/0.1104, allocations: 99.75 kB / 423.2 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002136/0.1106, allocations: 159.5 kB / 423.3 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.1108, allocations: 179.2 kB / 423.5 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.259e-05/0.1109, allocations: 36 kB / 423.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.553e-05/0.1109, allocations: 32 kB / 423.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.111, allocations: 87.62 kB / 423.7 MB, free: 7.379 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001786/0.1112, allocations: 183.1 kB / 423.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004737/0.1117, allocations: 426.2 kB / 424.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1117, allocations: 0 / 424.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1117, allocations: 0 / 424.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.1117, allocations: 4 kB / 424.3 MB, free: 6.777 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001116/0.1128, allocations: 0.6623 MB / 424.9 MB, free: 6.066 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.38e-05/0.1128, allocations: 8.031 kB / 424.9 MB, free: 6.059 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.518e-05/0.1129, allocations: 8.844 kB / 425 MB, free: 6.051 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.787e-05/0.113, allocations: 70.72 kB / 425 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.077e-05/0.113, allocations: 40.7 kB / 425.1 MB, free: 5.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.1135, allocations: 289.3 kB / 425.3 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000104/0.1136, allocations: 80.61 kB / 425.4 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.142e-05/0.1136, allocations: 40.06 kB / 425.5 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005696/0.1142, allocations: 338.7 kB / 425.8 MB, free: 5.129 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.288e-05/0.1142, allocations: 3.938 kB / 425.8 MB, free: 5.125 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.505e-05/0.1142, allocations: 20 kB / 425.8 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.1143, allocations: 8 kB / 425.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004272/0.1147, allocations: 218.5 kB / 426 MB, free: 4.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00193/0.1166, allocations: 1.353 MB / 427.4 MB, free: 3.434 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.117, allocations: 166.5 kB / 427.6 MB, free: 3.262 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1171, allocations: 78.72 kB / 427.6 MB, free: 3.184 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.1171, allocations: 4 kB / 427.6 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000301/0.1174, allocations: 161.8 kB / 427.8 MB, free: 3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.463e-06/0.1174, allocations: 0 / 427.8 MB, free: 3 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001148/0.1186, allocations: 409.6 kB / 428.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.1187, allocations: 106.8 kB / 428.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002643/0.1189, allocations: 262.7 kB / 428.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.119, allocations: 25.7 kB / 428.6 MB, free: 2.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.1191, allocations: 212.3 kB / 428.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.588e-05/0.1192, allocations: 79.36 kB / 428.9 MB, free: 1.867 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.1193, allocations: 58.03 kB / 428.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1194, allocations: 334.8 kB / 429.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.1196, allocations: 84.61 kB / 429.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002334/0.1198, allocations: 169.5 kB / 429.5 MB, free: 1.176 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003717/0.1202, allocations: 240.2 kB / 429.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1202, allocations: 4 kB / 429.7 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000694/0.1209, allocations: 344.4 kB / 430.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.1209, allocations: 8 kB / 430.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-06/0.1209, allocations: 0 / 430.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002686/0.1212, allocations: 60.97 kB / 430.1 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002621/0.1214, allocations: 59.91 kB / 430.2 MB, free: 440 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001455/0.1229, allocations: 1.572 MB / 431.8 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002466/0.1231, allocations: 47.72 kB / 431.8 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.356e-05/0.1232, allocations: 16.03 kB / 431.8 MB, free: 14.66 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.0001668/0.1233, allocations: 158.3 kB / 432 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.46e-05/0.1234, allocations: 31.8 kB / 432 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.731e-05/0.1234, allocations: 30.17 kB / 432 MB, free: 14.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1234, allocations: 4 kB / 432 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.946e-06/0.1234, allocations: 0 / 432 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.1234, allocations: 0 / 432 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003591/0.1238, allocations: 337.4 kB / 432.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.1238, allocations: 3.938 kB / 432.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001914/0.124, allocations: 43.92 kB / 432.4 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001894/0.1242, allocations: 56.75 kB / 432.5 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.838e-05/0.1242, allocations: 3.984 kB / 432.5 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001242/0.1254, allocations: 1.422 MB / 433.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1254, allocations: 4.156 kB / 433.9 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007108/0.1262, allocations: 351 kB / 434.2 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001181/0.1263, allocations: 116.9 kB / 434.4 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.602e-05/0.1263, allocations: 8 kB / 434.4 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.1265, allocations: 23.98 kB / 434.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.25e-05/0.1266, allocations: 27.95 kB / 434.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.1266, allocations: 7.984 kB / 434.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001738/0.1268, allocations: 182 kB / 434.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1268, allocations: 0 / 434.6 MB, free: 11.63 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003727/0.1271, allocations: 87.84 kB / 434.7 MB, free: 11.54 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.001039/0.1282, allocations: 0.8956 MB / 435.6 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000597/0.1288, allocations: 302.8 kB / 435.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1288, allocations: 0 / 435.9 MB, free: 10.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003246/0.1291, allocations: 201.8 kB / 436.1 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002541/0.1293, allocations: 28.5 kB / 436.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.1335, allocations: 2.916 MB / 439 MB, free: 7 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.1339, allocations: 0.7713 MB / 439.8 MB, free: 6.203 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.781e-05/0.134, allocations: 34.22 kB / 439.8 MB, free: 6.168 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.1341, allocations: 99.41 kB / 439.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1341, allocations: 0 / 439.9 MB, free: 6.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02923/0.1634, allocations: 6.104 MB / 446 MB, free: 168 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.73, allocations: 18.62 kB / 446.1 MB, free: 152 kB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.32515405700542] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.054414507991169 12.064287889 11.95037593 Calling exit ...