Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.00168/0.00168, allocations: 106.5 kB / 21.22 MB, free: 0.6797 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.002178/0.002178, allocations: 209.3 kB / 24.54 MB, free: 4.055 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.512/1.512, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001935/0.001935, allocations: 60.78 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2503/0.2522, allocations: 53.38 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01068/0.2629, allocations: 8.303 MB / 440.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005624/0.2685, allocations: 2.766 MB / 443 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001016/0.2695, allocations: 27.88 kB / 443 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001599/0.2711, allocations: 0.5754 MB / 443.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001422/0.2726, allocations: 0.5079 MB / 444.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006134/0.2732, allocations: 271.6 kB / 444.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00173/0.2749, allocations: 1.506 MB / 445.9 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006598/0.2756, allocations: 403.3 kB / 446.3 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008548/0.2764, allocations: 0.5914 MB / 446.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007667/0.2772, allocations: 0.6105 MB / 447.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001778/0.2774, allocations: 140 kB / 447.6 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003515/0.2777, allocations: 192 kB / 447.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002225/0.2779, allocations: 282.9 kB / 448.1 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006274/0.2786, allocations: 0.6765 MB / 448.8 MB, free: 5.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.2806, allocations: 1.767 MB / 450.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2806, allocations: 0 / 450.5 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2806, allocations: 4 kB / 450.5 MB, free: 4.168 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.651e-05/0.2806, allocations: 0 / 450.5 MB, free: 4.168 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002529/0.2832, allocations: 1.438 MB / 452 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.2832, allocations: 16.02 kB / 452 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001746/0.2834, allocations: 148.4 kB / 452.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007293/0.2841, allocations: 207.9 kB / 452.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001275/0.2854, allocations: 0.6968 MB / 453 MB, free: 1.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.427e-05/0.2855, allocations: 74 kB / 453.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.2856, allocations: 99.95 kB / 453.2 MB, free: 1.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.2872, allocations: 0.9464 MB / 454.1 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.094e-05/0.2872, allocations: 4 kB / 454.2 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-05/0.2873, allocations: 40 kB / 454.2 MB, free: 424 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.426e-05/0.2873, allocations: 28 kB / 454.2 MB, free: 396 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001295/0.2886, allocations: 0.652 MB / 454.9 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/0.294, allocations: 3.801 MB / 458.7 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007088/0.2947, allocations: 359.4 kB / 459 MB, free: 11.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005986/0.2953, allocations: 264.7 kB / 459.3 MB, free: 11.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.738e-05/0.2953, allocations: 7.938 kB / 459.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.673e-05/0.2954, allocations: 34.56 kB / 459.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 1.944e-06/0.2954, allocations: 0 / 459.3 MB, free: 11.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=45): time 0.002964/0.2983, allocations: 1.342 MB / 460.7 MB, free: 9.668 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.194e-05/0.2984, allocations: 85.05 kB / 460.7 MB, free: 9.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.2995, allocations: 0.845 MB / 461.6 MB, free: 8.711 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.2996, allocations: 33.7 kB / 461.6 MB, free: 8.672 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004667/0.3, allocations: 0.5852 MB / 462.2 MB, free: 8.078 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.3002, allocations: 166.6 kB / 462.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000193/0.3004, allocations: 134.6 kB / 462.5 MB, free: 7.777 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001553/0.3005, allocations: 337.9 kB / 462.8 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003682/0.3009, allocations: 169.9 kB / 463 MB, free: 7.273 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005982/0.3015, allocations: 479.6 kB / 463.5 MB, free: 6.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.3025, allocations: 0.676 MB / 464.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3025, allocations: 0 / 464.1 MB, free: 5.863 MB / 366.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001427/0.3039, allocations: 0.7794 MB / 464.9 MB, free: 5.07 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/0.3039, allocations: 15.94 kB / 464.9 MB, free: 5.055 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.647e-05/0.3039, allocations: 8 kB / 464.9 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002902/0.3042, allocations: 89.86 kB / 465 MB, free: 4.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000527/0.3048, allocations: 155.8 kB / 465.2 MB, free: 4.801 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002726/0.3075, allocations: 2.939 MB / 468.1 MB, free: 1.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006582/0.3081, allocations: 40 kB / 468.2 MB, free: 1.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.657e-05/0.3082, allocations: 32 kB / 468.2 MB, free: 1.562 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000486/0.3087, allocations: 265.5 kB / 468.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/0.3088, allocations: 91.44 kB / 468.5 MB, free: 1.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001028/0.3099, allocations: 0.4993 MB / 469 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.3099, allocations: 4 kB / 469.1 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.902e-06/0.3099, allocations: 4.125 kB / 469.1 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.462e-06/0.3099, allocations: 3.984 kB / 469.1 MB, free: 0.6758 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002272/0.3121, allocations: 1.45 MB / 470.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3121, allocations: 0 / 470.5 MB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003181/0.3125, allocations: 75.89 kB / 470.6 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002086/0.3127, allocations: 73.89 kB / 470.7 MB, free: 14.99 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.794e-05/0.3127, allocations: 12 kB / 470.7 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002431/0.3151, allocations: 2.916 MB / 473.6 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3151, allocations: 7.969 kB / 473.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.3165, allocations: 0.7982 MB / 474.4 MB, free: 10.98 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003149/0.3169, allocations: 127.4 kB / 474.5 MB, free: 10.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.687e-05/0.317, allocations: 15.94 kB / 474.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004317/0.3174, allocations: 31.98 kB / 474.6 MB, free: 10.81 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.003e-05/0.3175, allocations: 39.62 kB / 474.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.3175, allocations: 19.92 kB / 474.6 MB, free: 10.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008367/0.3183, allocations: 0.5771 MB / 475.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3183, allocations: 0 / 475.2 MB, free: 10.18 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000898/0.3192, allocations: 208 kB / 475.4 MB, free: 9.977 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001745/0.321, allocations: 1.381 MB / 476.8 MB, free: 8.543 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.3223, allocations: 0.6784 MB / 477.5 MB, free: 7.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.032e-06/0.3223, allocations: 4 kB / 477.5 MB, free: 7.836 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007079/0.323, allocations: 453.5 kB / 477.9 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001068/0.3241, allocations: 230.6 kB / 478.1 MB, free: 7.152 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.3353, allocations: 7.473 MB / 485.6 MB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007014/0.336, allocations: 1.02 MB / 486.6 MB, free: 14.2 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004324/0.3364, allocations: 103.3 kB / 486.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004759/0.3369, allocations: 395.3 kB / 487.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of SimCode: time 1.202e-06/0.3369, allocations: 0 / 487.1 MB, free: 13.7 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06056/0.3974, allocations: 20.05 MB / 0.4953 GB, free: 9.91 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 10.3 kB / 0.4953 GB, free: 9.906 MB / 414.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.15104947797954] Failed to read output from testmodel.py, exit status != 0: ['time', 'dcse.la.i', 'loadInertia.phi', 'loadInertia.w'] 11.79911035625264 11.814713643 11.5308923 Calling exit ...