Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001769/0.001769, allocations: 120.2 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002049/0.002049, allocations: 214.2 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 230.4 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001859/0.001859, allocations: 63.89 kB / 373.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1127, allocations: 53.38 MB / 427.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004481/0.1172, allocations: 3.178 MB / 430.3 MB, free: 1.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001488/0.1187, allocations: 0.8179 MB / 431.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1188, allocations: 7.938 kB / 431.1 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.119, allocations: 67.36 kB / 431.2 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.1192, allocations: 103 kB / 431.3 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004172/0.1197, allocations: 119.7 kB / 431.4 MB, free: 308 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1967/0.3163, allocations: 420.5 kB / 431.8 MB, free: 7.625 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002917/0.3166, allocations: 98.64 kB / 431.9 MB, free: 7.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003709/0.317, allocations: 165.5 kB / 432 MB, free: 7.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002278/0.3172, allocations: 173.5 kB / 432.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.231e-05/0.3173, allocations: 34.88 kB / 432.2 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001107/0.3174, allocations: 42.22 kB / 432.3 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.195e-05/0.3175, allocations: 83.39 kB / 432.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.3176, allocations: 189.3 kB / 432.5 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000446/0.3181, allocations: 432 kB / 433 MB, free: 7.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3181, allocations: 0 / 433 MB, free: 7.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.3181, allocations: 2.25 kB / 433 MB, free: 7.43 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.3181, allocations: 0 / 433 MB, free: 7.43 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.0009381/0.319, allocations: 0.6612 MB / 433.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.3191, allocations: 8.312 kB / 433.6 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.066e-05/0.3191, allocations: 13.03 kB / 433.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.034e-05/0.3192, allocations: 67.2 kB / 433.7 MB, free: 6.918 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001722/0.3193, allocations: 56.16 kB / 433.8 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003431/0.3197, allocations: 287.9 kB / 434.1 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.056e-05/0.3197, allocations: 80.41 kB / 434.1 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.485e-05/0.3198, allocations: 35.05 kB / 434.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004754/0.3202, allocations: 337.6 kB / 434.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.194e-05/0.3203, allocations: 0 / 434.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.3203, allocations: 14.66 kB / 434.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.3203, allocations: 9.516 kB / 434.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003872/0.3207, allocations: 221.8 kB / 434.7 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001584/0.3223, allocations: 1.363 MB / 436.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003042/0.3226, allocations: 161 kB / 436.3 MB, free: 5.723 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.3227, allocations: 83.36 kB / 436.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3227, allocations: 2.344 kB / 436.3 MB, free: 5.715 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002584/0.323, allocations: 156.6 kB / 436.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.323, allocations: 1.125 kB / 436.5 MB, free: 5.645 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001085/0.3241, allocations: 413.3 kB / 436.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.3241, allocations: 106.2 kB / 437 MB, free: 5.363 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002341/0.3244, allocations: 264.1 kB / 437.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.914e-05/0.3244, allocations: 32.48 kB / 437.3 MB, free: 5.223 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.245e-05/0.3245, allocations: 212.9 kB / 437.5 MB, free: 5.082 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.619e-05/0.3245, allocations: 77.33 kB / 437.6 MB, free: 5.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.878e-05/0.3246, allocations: 57.78 kB / 437.6 MB, free: 5.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.3247, allocations: 341.3 kB / 438 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001515/0.3248, allocations: 77.36 kB / 438 MB, free: 4.703 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.325, allocations: 176.1 kB / 438.2 MB, free: 4.586 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000301/0.3253, allocations: 238.8 kB / 438.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.3253, allocations: 1.844 kB / 438.4 MB, free: 4.484 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006427/0.326, allocations: 345.8 kB / 438.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.326, allocations: 9.844 kB / 438.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.326, allocations: 3.141 kB / 438.8 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002874/0.3263, allocations: 54.84 kB / 438.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002641/0.3265, allocations: 67.92 kB / 438.9 MB, free: 4.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.3277, allocations: 1.566 MB / 440.5 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000293/0.328, allocations: 54.05 kB / 440.5 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.453e-05/0.3281, allocations: 14.89 kB / 440.6 MB, free: 2.852 MB / 350.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.0001405/0.3282, allocations: 146 kB / 440.7 MB, free: 2.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/0.3282, allocations: 30.69 kB / 440.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.289e-05/0.3283, allocations: 31.22 kB / 440.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3283, allocations: 3.203 kB / 440.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.3283, allocations: 0 / 440.8 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.18e-06/0.3283, allocations: 7.969 kB / 440.8 MB, free: 2.672 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004059/0.3287, allocations: 343.8 kB / 441.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.3287, allocations: 1.219 kB / 441.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000198/0.3289, allocations: 38.66 kB / 441.1 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001903/0.3291, allocations: 54.97 kB / 441.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.916e-05/0.3291, allocations: 2.391 kB / 441.2 MB, free: 2.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008642/0.33, allocations: 1.425 MB / 442.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.33, allocations: 1.891 kB / 442.6 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006878/0.3307, allocations: 345.7 kB / 443 MB, free: 0.793 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.147e-05/0.3308, allocations: 117.9 kB / 443.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.515e-05/0.3308, allocations: 6.078 kB / 443.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001824/0.331, allocations: 19.41 kB / 443.1 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.826e-05/0.3311, allocations: 30.97 kB / 443.1 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.654e-05/0.3311, allocations: 10.03 kB / 443.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000167/0.3313, allocations: 183.4 kB / 443.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3313, allocations: 0 / 443.3 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000407/0.3317, allocations: 93.38 kB / 443.4 MB, free: 0.5273 MB / 350.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.0009363/0.3326, allocations: 0.89 MB / 444.3 MB, free: 15.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007278/0.3333, allocations: 307 kB / 444.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.3333, allocations: 0 / 444.6 MB, free: 15.65 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003399/0.3337, allocations: 195 kB / 444.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.334, allocations: 43.62 kB / 444.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004929/0.3389, allocations: 2.917 MB / 447.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004621/0.3394, allocations: 0.7788 MB / 448.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.3395, allocations: 28.2 kB / 448.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001495/0.3396, allocations: 93.11 kB / 448.6 MB, free: 12.75 MB / 366.1 MB Notification: Performance of SimCode: time 9.71e-07/0.3396, allocations: 1.125 kB / 448.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02977/0.3694, allocations: 6.151 MB / 454.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.34, allocations: 6.609 kB / 454.8 MB, free: 11.9 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc_fmu --startTime=0 --stopTime=6 --stepSize=0.00025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_ControlledSwitchWithArc.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.828235951019451] Failed to read output from testmodel.py, exit status != 0: ['time', 'inductor1.i', 'inductor2.i'] 12.49049500701949 12.515029146 12.192066909 Calling exit ...