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.001301/0.001301, allocations: 121.4 kB / 19.17 MB, free: 3.898 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.001356/0.001356, allocations: 203.9 kB / 22.12 MB, free: 0.9609 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.417/1.417, allocations: 207.6 MB / 232.5 MB, free: 3.949 MB / 174.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: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",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.001704/0.001704, allocations: 52.25 kB / 343 MB, free: 9.98 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09141/0.09311, allocations: 49.13 MB / 392.1 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004483/0.09759, allocations: 3.104 MB / 395.2 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.09909, allocations: 0.799 MB / 396 MB, free: 4.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.09925, allocations: 7.938 kB / 396 MB, free: 4.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001955/0.09945, allocations: 59.42 kB / 396.1 MB, free: 4.691 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.09964, allocations: 107 kB / 396.2 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003432/0.09998, allocations: 107.8 kB / 396.3 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004763/0.1005, allocations: 422 kB / 396.7 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002098/0.1007, allocations: 103.7 kB / 396.8 MB, free: 3.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002169/0.1009, allocations: 163.5 kB / 397 MB, free: 3.801 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002201/0.1011, allocations: 171.2 kB / 397.2 MB, free: 3.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.114e-05/0.1012, allocations: 40 kB / 397.2 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.538e-05/0.1012, allocations: 32 kB / 397.2 MB, free: 3.562 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.281e-05/0.1013, allocations: 83.69 kB / 397.3 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000192/0.1015, allocations: 195 kB / 397.5 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004846/0.102, allocations: 418.3 kB / 397.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.102, allocations: 0 / 397.9 MB, free: 2.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.102, allocations: 3.938 kB / 397.9 MB, free: 2.875 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.102, allocations: 0 / 397.9 MB, free: 2.875 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.001215/0.1032, allocations: 0.6584 MB / 398.6 MB, free: 2.168 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.27e-05/0.1033, allocations: 12.03 kB / 398.6 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.246e-05/0.1033, allocations: 8.844 kB / 398.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.639e-05/0.1034, allocations: 66.72 kB / 398.7 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.252e-05/0.1035, allocations: 52.66 kB / 398.7 MB, free: 2.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004684/0.1039, allocations: 281.4 kB / 399 MB, free: 1.707 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.891e-05/0.104, allocations: 80.62 kB / 399.1 MB, free: 1.613 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.801e-05/0.1041, allocations: 32.12 kB / 399.1 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006307/0.1047, allocations: 334.7 kB / 399.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1047, allocations: 7.969 kB / 399.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.8e-05/0.1048, allocations: 16 kB / 399.4 MB, free: 1.215 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.296e-05/0.1048, allocations: 12 kB / 399.5 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004585/0.1052, allocations: 222.4 kB / 399.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002111/0.1073, allocations: 1.349 MB / 401 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003641/0.1077, allocations: 166.4 kB / 401.2 MB, free: 15.37 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001692/0.1079, allocations: 80.83 kB / 401.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.1079, allocations: 4 kB / 401.3 MB, free: 15.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003248/0.1082, allocations: 161.8 kB / 401.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.744e-06/0.1082, allocations: 0 / 401.4 MB, free: 15.1 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.00121/0.1094, allocations: 399.6 kB / 401.8 MB, free: 14.68 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.1095, allocations: 110.8 kB / 401.9 MB, free: 14.55 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003057/0.1098, allocations: 266.6 kB / 402.2 MB, free: 14.28 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.281e-05/0.1099, allocations: 33.69 kB / 402.2 MB, free: 14.24 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001595/0.11, allocations: 208.3 kB / 402.4 MB, free: 14.03 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.016e-05/0.1101, allocations: 71.42 kB / 402.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1102, allocations: 65.97 kB / 402.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.1104, allocations: 334.8 kB / 402.9 MB, free: 13.55 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001682/0.1106, allocations: 72.62 kB / 403 MB, free: 13.48 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002509/0.1108, allocations: 189.4 kB / 403.1 MB, free: 13.26 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003999/0.1112, allocations: 240.5 kB / 403.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1112, allocations: 0 / 403.4 MB, free: 12.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007342/0.1119, allocations: 343.8 kB / 403.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.112, allocations: 4 kB / 403.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.383e-06/0.112, allocations: 4 kB / 403.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000287/0.1123, allocations: 60.97 kB / 403.8 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002568/0.1125, allocations: 59.91 kB / 403.8 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.1141, allocations: 1.572 MB / 405.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.1144, allocations: 47.69 kB / 405.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.801e-05/0.1144, allocations: 16 kB / 405.5 MB, free: 10.74 MB / 334.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.0001777/0.1146, allocations: 153.8 kB / 405.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.1146, allocations: 35.69 kB / 405.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.638e-05/0.1147, allocations: 34.17 kB / 405.7 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1147, allocations: 3.938 kB / 405.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.1147, allocations: 4 kB / 405.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.1147, allocations: 3.984 kB / 405.7 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003833/0.1151, allocations: 337.4 kB / 406 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1151, allocations: 4 kB / 406 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002473/0.1153, allocations: 43.91 kB / 406.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001933/0.1155, allocations: 48.81 kB / 406.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.1156, allocations: 4 kB / 406.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.1169, allocations: 1.418 MB / 407.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1169, allocations: 0 / 407.5 MB, free: 8.461 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007549/0.1176, allocations: 362.4 kB / 407.9 MB, free: 8.086 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.1178, allocations: 113 kB / 408 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.889e-05/0.1178, allocations: 8 kB / 408 MB, free: 7.949 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001744/0.118, allocations: 19.98 kB / 408 MB, free: 7.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-05/0.1181, allocations: 31.95 kB / 408.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.439e-05/0.1181, allocations: 4 kB / 408.1 MB, free: 7.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001897/0.1183, allocations: 186 kB / 408.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1183, allocations: 0 / 408.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004175/0.1187, allocations: 91.78 kB / 408.3 MB, free: 7.629 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.00112/0.1198, allocations: 0.8862 MB / 409.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006601/0.1205, allocations: 310.8 kB / 409.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1205, allocations: 0 / 409.5 MB, free: 6.391 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.1208, allocations: 190.6 kB / 409.7 MB, free: 6.191 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002766/0.1211, allocations: 52.41 kB / 409.8 MB, free: 6.141 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004386/0.1254, allocations: 2.897 MB / 412.7 MB, free: 3.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003933/0.1258, allocations: 0.7713 MB / 413.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.1259, allocations: 30.27 kB / 413.5 MB, free: 2.262 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/0.1261, allocations: 99.41 kB / 413.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of SimCode: time 9.82e-07/0.1261, allocations: 4 kB / 413.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.1549, allocations: 6.097 MB / 419.7 MB, free: 12.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/11.77, allocations: 23.98 kB / 419.7 MB, free: 11.99 MB / 350.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.181321739044506] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.919286152988207 11.932592365 11.827804945 Calling exit ...