Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001354/0.001354, allocations: 108.8 kB / 19.16 MB, free: 3.871 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.001919/0.001919, allocations: 205.6 kB / 22.12 MB, free: 0.9297 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.543/1.543, allocations: 207.6 MB / 232.5 MB, free: 3.742 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.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.SwitchWithArc,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc",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.001774/0.001774, allocations: 51.94 kB / 343 MB, free: 9.965 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1076, allocations: 49.12 MB / 392.1 MB, free: 8.68 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.SwitchWithArc): time 0.004385/0.112, allocations: 2.843 MB / 395 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001523/0.1135, allocations: 0.7834 MB / 395.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.1137, allocations: 4 kB / 395.8 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001946/0.1139, allocations: 51.44 kB / 395.8 MB, free: 4.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001962/0.1141, allocations: 99.17 kB / 395.9 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.1144, allocations: 99.75 kB / 396 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.1148, allocations: 370.3 kB / 396.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002131/0.115, allocations: 95.2 kB / 396.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001565/0.1152, allocations: 139.5 kB / 396.6 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002274/0.1154, allocations: 159.3 kB / 396.7 MB, free: 4.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.218e-05/0.1155, allocations: 32 kB / 396.8 MB, free: 3.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.86e-05/0.1155, allocations: 32 kB / 396.8 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.166e-05/0.1156, allocations: 67.77 kB / 396.9 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001696/0.1158, allocations: 159.3 kB / 397 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004492/0.1162, allocations: 370.5 kB / 397.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.1162, allocations: 0 / 397.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1162, allocations: 0 / 397.4 MB, free: 3.379 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.1162, allocations: 0 / 397.4 MB, free: 3.379 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.00112/0.1174, allocations: 0.6131 MB / 398 MB, free: 2.719 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/0.1174, allocations: 12.03 kB / 398 MB, free: 2.707 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.066e-05/0.1174, allocations: 4.844 kB / 398 MB, free: 2.703 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.466e-05/0.1175, allocations: 70.72 kB / 398.1 MB, free: 2.625 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.473e-05/0.1176, allocations: 32.75 kB / 398.1 MB, free: 2.594 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004223/0.118, allocations: 276.4 kB / 398.4 MB, free: 2.285 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000107/0.1181, allocations: 72.62 kB / 398.5 MB, free: 2.199 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.744e-05/0.1182, allocations: 32.12 kB / 398.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005018/0.1187, allocations: 297.7 kB / 398.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1187, allocations: 0 / 398.8 MB, free: 1.863 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.626e-05/0.1187, allocations: 16 kB / 398.8 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.1187, allocations: 11.94 kB / 398.8 MB, free: 1.836 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003607/0.1191, allocations: 190.1 kB / 399 MB, free: 1.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001809/0.1209, allocations: 1.127 MB / 400.1 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003257/0.1212, allocations: 146.6 kB / 400.3 MB, free: 296 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001327/0.1214, allocations: 72.77 kB / 400.3 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.02e-05/0.1214, allocations: 8 kB / 400.3 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002856/0.1217, allocations: 153.8 kB / 400.5 MB, free: 36 kB / 318.1 MB Notification: Performance of pre-optimization done (n=21): time 1.392e-06/0.1217, allocations: 0 / 400.5 MB, free: 36 kB / 318.1 MB Notification: Performance of matching and sorting (n=21): time 0.001121/0.1228, allocations: 387.6 kB / 400.9 MB, free: 15.63 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.396e-05/0.1229, allocations: 102.8 kB / 401 MB, free: 15.5 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002477/0.1231, allocations: 229 kB / 401.2 MB, free: 15.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.056e-05/0.1232, allocations: 33.7 kB / 401.2 MB, free: 15.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001348/0.1233, allocations: 180.5 kB / 401.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.206e-05/0.1234, allocations: 71.42 kB / 401.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.1235, allocations: 65.52 kB / 401.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1236, allocations: 338.8 kB / 401.9 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001408/0.1238, allocations: 67.97 kB / 401.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001834/0.1239, allocations: 140.6 kB / 402.1 MB, free: 14.33 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003087/0.1243, allocations: 197.1 kB / 402.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.1243, allocations: 0 / 402.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004668/0.1247, allocations: 275.8 kB / 402.5 MB, free: 13.84 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1247, allocations: 8 kB / 402.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.1248, allocations: 0 / 402.5 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.125, allocations: 57.03 kB / 402.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002185/0.1252, allocations: 55.91 kB / 402.7 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00159/0.1268, allocations: 1.568 MB / 404.2 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.1271, allocations: 39.77 kB / 404.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.299e-05/0.1271, allocations: 12 kB / 404.3 MB, free: 11.96 MB / 334.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.0001643/0.1273, allocations: 149.8 kB / 404.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/0.1273, allocations: 19.86 kB / 404.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.207e-05/0.1273, allocations: 34.17 kB / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1274, allocations: 0 / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.1274, allocations: 0 / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.1274, allocations: 0 / 404.5 MB, free: 11.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.1277, allocations: 329.3 kB / 404.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.1277, allocations: 4 kB / 404.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001773/0.1279, allocations: 35.92 kB / 404.8 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001923/0.1281, allocations: 52.81 kB / 404.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.1281, allocations: 0 / 404.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.1294, allocations: 1.426 MB / 406.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1295, allocations: 0 / 406.3 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007443/0.1302, allocations: 338.3 kB / 406.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.1303, allocations: 116.8 kB / 406.8 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.1304, allocations: 7.984 kB / 406.8 MB, free: 9.227 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.1305, allocations: 24.05 kB / 406.8 MB, free: 9.203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.604e-05/0.1306, allocations: 31.89 kB / 406.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.318e-05/0.1306, allocations: 4 kB / 406.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002374/0.1309, allocations: 164.5 kB / 407 MB, free: 9.008 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1309, allocations: 0 / 407 MB, free: 9.008 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003647/0.1312, allocations: 83.84 kB / 407.1 MB, free: 8.926 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: 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.001083/0.1323, allocations: 0.8669 MB / 407.9 MB, free: 8.027 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005787/0.1329, allocations: 274.4 kB / 408.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.1329, allocations: 0 / 408.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003044/0.1332, allocations: 195.1 kB / 408.4 MB, free: 7.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002931/0.1335, allocations: 36.33 kB / 408.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003955/0.1374, allocations: 2.59 MB / 411 MB, free: 4.793 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004674/0.1379, allocations: 0.7635 MB / 411.8 MB, free: 4 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.745e-05/0.138, allocations: 26.27 kB / 411.8 MB, free: 3.973 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001398/0.1381, allocations: 83.41 kB / 411.9 MB, free: 3.891 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1381, allocations: 7.938 kB / 411.9 MB, free: 3.883 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02954/0.1677, allocations: 5.723 MB / 417.6 MB, free: 14.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.63/11.8, allocations: 12 kB / 417.6 MB, free: 14.09 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc_fmu --startTime=0 --stopTime=2 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_SwitchWithArc.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.SwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.39617119502509] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 11.946552929992322 11.961469892 11.842344377 Calling exit ...