Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001349/0.001349, allocations: 114.8 kB / 18.49 MB, free: 4.559 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.001491/0.001491, allocations: 217.4 kB / 21.46 MB, free: 1.602 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.403/1.403, 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.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001667/0.001667, allocations: 51.94 kB / 373.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1001/0.1018, allocations: 53.33 MB / 427 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.00425/0.106, allocations: 2.894 MB / 429.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001375/0.1074, allocations: 0.7789 MB / 430.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.1075, allocations: 4 kB / 430.7 MB, free: 1.082 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001652/0.1077, allocations: 51.5 kB / 430.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.1079, allocations: 91.19 kB / 430.9 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.1082, allocations: 103.7 kB / 431 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003872/0.1086, allocations: 366.4 kB / 431.3 MB, free: 492 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.1088, allocations: 91.27 kB / 431.4 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001503/0.1089, allocations: 139.5 kB / 431.5 MB, free: 252 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002096/0.1091, allocations: 155.4 kB / 431.7 MB, free: 96 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.362e-05/0.1092, allocations: 28 kB / 431.7 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.944e-05/0.1092, allocations: 32 kB / 431.7 MB, free: 36 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.08e-05/0.1093, allocations: 71.75 kB / 431.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001607/0.1094, allocations: 167.2 kB / 432 MB, free: 15.8 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004058/0.1099, allocations: 374.4 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.808e-06/0.1099, allocations: 3.938 kB / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1099, allocations: 0 / 432.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1099, allocations: 0 / 432.3 MB, free: 15.43 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001009/0.1109, allocations: 0.6131 MB / 433 MB, free: 14.77 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.1109, allocations: 8.031 kB / 433 MB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.346e-05/0.1109, allocations: 8.844 kB / 433 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.822e-05/0.111, allocations: 66.72 kB / 433 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.1111, allocations: 40.7 kB / 433.1 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1114, allocations: 265 kB / 433.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.394e-05/0.1115, allocations: 84.61 kB / 433.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.607e-05/0.1116, allocations: 28.12 kB / 433.5 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004674/0.112, allocations: 293.8 kB / 433.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.112, allocations: 0 / 433.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.1121, allocations: 15.98 kB / 433.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.1121, allocations: 12 kB / 433.8 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003389/0.1124, allocations: 186.1 kB / 433.9 MB, free: 13.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001646/0.1141, allocations: 1.12 MB / 435.1 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003136/0.1144, allocations: 150.5 kB / 435.2 MB, free: 12.35 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.1145, allocations: 68.84 kB / 435.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.1145, allocations: 3.984 kB / 435.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002745/0.1148, allocations: 173.8 kB / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=21): time 1.383e-06/0.1148, allocations: 0 / 435.5 MB, free: 12.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=21): time 0.001064/0.1159, allocations: 381.5 kB / 435.8 MB, free: 11.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.014e-05/0.116, allocations: 106.8 kB / 435.9 MB, free: 11.56 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/0.1162, allocations: 229 kB / 436.2 MB, free: 11.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.648e-05/0.1162, allocations: 29.7 kB / 436.2 MB, free: 11.29 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.1164, allocations: 184.5 kB / 436.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.79e-05/0.1164, allocations: 71.41 kB / 436.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.869e-05/0.1165, allocations: 57.64 kB / 436.5 MB, free: 10.97 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000143/0.1167, allocations: 346.8 kB / 436.8 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.1168, allocations: 67.91 kB / 436.9 MB, free: 10.56 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.117, allocations: 140.6 kB / 437 MB, free: 10.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002696/0.1172, allocations: 196.1 kB / 437.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1172, allocations: 0 / 437.2 MB, free: 10.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004357/0.1177, allocations: 276.5 kB / 437.5 MB, free: 9.895 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.1177, allocations: 4 kB / 437.5 MB, free: 9.891 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/0.1177, allocations: 4 kB / 437.5 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.118, allocations: 60.97 kB / 437.6 MB, free: 9.824 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002052/0.1182, allocations: 47.92 kB / 437.6 MB, free: 9.777 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001438/0.1196, allocations: 1.569 MB / 439.2 MB, free: 8.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.1198, allocations: 27.84 kB / 439.2 MB, free: 8.043 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.348e-05/0.1199, allocations: 15.98 kB / 439.2 MB, free: 8.027 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.0001577/0.12, allocations: 153.8 kB / 439.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.749e-05/0.12, allocations: 23.86 kB / 439.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.636e-05/0.1201, allocations: 30.17 kB / 439.4 MB, free: 7.812 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1201, allocations: 4 kB / 439.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.184e-06/0.1201, allocations: 0 / 439.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.1201, allocations: 0 / 439.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003404/0.1205, allocations: 321.3 kB / 439.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.1205, allocations: 0 / 439.7 MB, free: 7.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001761/0.1206, allocations: 31.98 kB / 439.8 MB, free: 7.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.1208, allocations: 52.81 kB / 439.8 MB, free: 7.359 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.196e-05/0.1208, allocations: 11.98 kB / 439.8 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.122, allocations: 1.422 MB / 441.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.122, allocations: 0 / 441.3 MB, free: 5.785 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006209/0.1227, allocations: 328.6 kB / 441.6 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.1228, allocations: 116.8 kB / 441.7 MB, free: 5.312 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.372e-05/0.1228, allocations: 8 kB / 441.7 MB, free: 5.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000166/0.123, allocations: 15.98 kB / 441.7 MB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.635e-05/0.1231, allocations: 32.02 kB / 441.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1231, allocations: 11.98 kB / 441.8 MB, free: 5.246 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001415/0.1232, allocations: 156.5 kB / 441.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1232, allocations: 0 / 441.9 MB, free: 5.098 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003439/0.1236, allocations: 83.84 kB / 442 MB, free: 5.016 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.0009571/0.1245, allocations: 0.8707 MB / 442.9 MB, free: 4.113 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.125, allocations: 281.4 kB / 443.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.125, allocations: 0 / 443.1 MB, free: 3.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002804/0.1253, allocations: 195 kB / 443.3 MB, free: 3.625 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/0.1256, allocations: 36.41 kB / 443.4 MB, free: 3.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.1291, allocations: 2.605 MB / 446 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.1295, allocations: 0.7518 MB / 446.7 MB, free: 80 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.738e-05/0.1296, allocations: 26.28 kB / 446.7 MB, free: 52 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1776/0.3072, allocations: 78.94 kB / 446.8 MB, free: 23.84 MB / 366.1 MB Notification: Performance of SimCode: time 1.463e-06/0.3072, allocations: 0 / 446.8 MB, free: 23.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02911/0.3363, allocations: 5.703 MB / 452.5 MB, free: 23.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/11.84, allocations: 14.05 kB / 452.5 MB, free: 23.34 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_4.1.0_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.244007503031753] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.987141930032521 11.999509106 11.887030705 Calling exit ...