Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.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.001762/0.001762, allocations: 109 kB / 21.23 MB, free: 0.6641 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.002198/0.002198, allocations: 213.6 kB / 24.54 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 230.6 MB / 258.3 MB, free: 8.031 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-beta.om/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.Resistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.Resistor,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 68.55 kB / 378.6 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2638, allocations: 53.38 MB / 431.9 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.Resistor): time 0.003575/0.2673, allocations: 2.175 MB / 434.1 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.2685, allocations: 0.6311 MB / 434.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.592e-05/0.2686, allocations: 4 kB / 434.7 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.2687, allocations: 23.78 kB / 434.8 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.443e-05/0.2688, allocations: 35.64 kB / 434.8 MB, free: 4.016 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002391/0.269, allocations: 59.8 kB / 434.9 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001952/0.2692, allocations: 159.2 kB / 435 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.2694, allocations: 41.64 kB / 435.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001571/0.2695, allocations: 67.73 kB / 435.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.2696, allocations: 71.7 kB / 435.2 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.2697, allocations: 12 kB / 435.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.343e-05/0.2697, allocations: 23.98 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.237e-05/0.2698, allocations: 31.91 kB / 435.3 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.115e-05/0.2698, allocations: 67.67 kB / 435.3 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002502/0.2701, allocations: 176.1 kB / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2701, allocations: 0 / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2701, allocations: 0 / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.2701, allocations: 0 / 435.5 MB, free: 3.316 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005879/0.2707, allocations: 373.8 kB / 435.9 MB, free: 2.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2707, allocations: 8.031 kB / 435.9 MB, free: 2.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.767e-05/0.2708, allocations: 46.73 kB / 435.9 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.271, allocations: 28.83 kB / 435.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.2712, allocations: 146.4 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.2712, allocations: 8.609 kB / 436.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.444e-05/0.2713, allocations: 12.31 kB / 436.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.2715, allocations: 131.6 kB / 436.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2715, allocations: 0 / 436.2 MB, free: 2.508 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.85e-05/0.2715, allocations: 7.984 kB / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2716, allocations: 4 kB / 436.2 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000184/0.2717, allocations: 72.67 kB / 436.3 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008385/0.2726, allocations: 0.5697 MB / 436.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.2729, allocations: 86.56 kB / 437 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.432e-05/0.273, allocations: 28.97 kB / 437 MB, free: 1.656 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.291e-05/0.273, allocations: 4 kB / 437 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.273, allocations: 34.56 kB / 437 MB, free: 1.609 MB / 334.1 MB Notification: Performance of pre-optimization done (n=6): time 1.603e-06/0.273, allocations: 0 / 437 MB, free: 1.609 MB / 334.1 MB Notification: Performance of matching and sorting (n=6): time 0.000667/0.2737, allocations: 186.3 kB / 437.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.741e-05/0.2737, allocations: 51.41 kB / 437.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001471/0.2739, allocations: 163.5 kB / 437.4 MB, free: 1.188 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.2739, allocations: 25.7 kB / 437.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.908e-05/0.274, allocations: 124.2 kB / 437.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.274, allocations: 15.8 kB / 437.6 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.635e-05/0.274, allocations: 29.7 kB / 437.6 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.2741, allocations: 314.8 kB / 437.9 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.845e-05/0.2742, allocations: 23.92 kB / 437.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.135e-05/0.2743, allocations: 50.56 kB / 438 MB, free: 0.582 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001479/0.2744, allocations: 74.48 kB / 438.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2744, allocations: 0 / 438.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003114/0.2748, allocations: 146.3 kB / 438.2 MB, free: 356 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.2748, allocations: 4 kB / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2748, allocations: 0 / 438.2 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000189/0.275, allocations: 40.83 kB / 438.3 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.552e-05/0.275, allocations: 8 kB / 438.3 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001679/0.2767, allocations: 1.58 MB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.484e-05/0.2768, allocations: 15.98 kB / 439.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.2768, allocations: 4 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 4 * 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,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001086/0.2769, allocations: 125.8 kB / 440 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.377e-05/0.2769, allocations: 7.953 kB / 440 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.338e-05/0.277, allocations: 16.72 kB / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.277, allocations: 0 / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-06/0.277, allocations: 0 / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.755e-06/0.277, allocations: 192 / 440 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.2772, allocations: 188.6 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2772, allocations: 3.938 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.066e-05/0.2772, allocations: 7.984 kB / 440.2 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001233/0.2773, allocations: 32.84 kB / 440.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.767e-06/0.2774, allocations: 3.938 kB / 440.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.2787, allocations: 1.582 MB / 441.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.2787, allocations: 128 / 441.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.2791, allocations: 224.3 kB / 442 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.2791, allocations: 11.95 kB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.291e-05/0.2791, allocations: 0 / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.665e-05/0.2792, allocations: 8 kB / 442.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.387e-05/0.2792, allocations: 3.984 kB / 442.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2792, allocations: 0 / 442.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.85e-05/0.2793, allocations: 126.2 kB / 442.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2793, allocations: 3.938 kB / 442.2 MB, free: 12.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003515/0.2797, allocations: 43.89 kB / 442.2 MB, free: 12.02 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006185/0.2803, allocations: 0.7444 MB / 443 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004023/0.2807, allocations: 178.6 kB / 443.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.2807, allocations: 0 / 443.2 MB, free: 11.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002185/0.2809, allocations: 158.6 kB / 443.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002575/0.2812, allocations: 12.12 kB / 443.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.2832, allocations: 1.729 MB / 445.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000311/0.2835, allocations: 0.708 MB / 445.8 MB, free: 8.316 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.221e-05/0.2836, allocations: 8.438 kB / 445.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.357e-05/0.2836, allocations: 31.42 kB / 445.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2836, allocations: 0 / 445.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03016/0.3138, allocations: 3.118 MB / 448.9 MB, free: 5.281 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.09, allocations: 8.75 kB / 448.9 MB, free: 5.273 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Analog_Examples_Resistor.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.Resistor.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.421920897904783] Failed to read output from testmodel.py, exit status != 0: ['time', 'resistor.i', 'resistor.LossPower'] 12.186907907016575 12.20569121 11.932080625 Calling exit ...