Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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.001415/0.001415, allocations: 109.5 kB / 19.74 MB, free: 2.586 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.001569/0.001569, allocations: 220.4 kB / 22.92 MB, free: 5.559 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.286/1.286, allocations: 230.4 MB / 256.4 MB, free: 8.273 MB / 206.1 MB " [Timeout remaining time 179] 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.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",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.001826/0.001826, allocations: 71.97 kB / 376.1 MB, free: 4.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.211, allocations: 53.31 MB / 429.4 MB, free: 7.566 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01227/0.2233, allocations: 11.54 MB / 441 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006228/0.2295, allocations: 3.606 MB / 444.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001369/0.2309, allocations: 63.75 kB / 444.6 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001938/0.2328, allocations: 0.9056 MB / 445.5 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002217/0.235, allocations: 0.9786 MB / 446.5 MB, free: 6.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008132/0.2358, allocations: 447.2 kB / 446.9 MB, free: 5.969 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003884/0.2397, allocations: 3.747 MB / 450.7 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001931/0.2416, allocations: 1.596 MB / 452.3 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001999/0.2436, allocations: 1.671 MB / 454 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002555/0.2462, allocations: 2.02 MB / 456 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005794/0.2468, allocations: 416 kB / 456.4 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009118/0.2477, allocations: 0.5036 MB / 456.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.2488, allocations: 1.227 MB / 458.1 MB, free: 10.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001984/0.2508, allocations: 1.925 MB / 460 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005316/0.2561, allocations: 5.57 MB / 465.6 MB, free: 3.18 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2561, allocations: 0 / 465.6 MB, free: 3.18 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2561, allocations: 0 / 465.6 MB, free: 3.18 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.082e-05/0.2562, allocations: 0 / 465.6 MB, free: 3.18 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.006688/0.2629, allocations: 3.911 MB / 469.5 MB, free: 15.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.2629, allocations: 12.03 kB / 469.5 MB, free: 15.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000475/0.2634, allocations: 409 kB / 469.9 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008582/0.2642, allocations: 418.5 kB / 470.3 MB, free: 14.36 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003141/0.2674, allocations: 2.069 MB / 472.4 MB, free: 12.24 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001592/0.2675, allocations: 217.8 kB / 472.6 MB, free: 12.03 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003764/0.2679, allocations: 284 kB / 472.9 MB, free: 11.75 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005558/0.2735, allocations: 3.857 MB / 476.8 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.513e-05/0.2735, allocations: 3.953 kB / 476.8 MB, free: 7.801 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002518/0.2738, allocations: 120 kB / 476.9 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001196/0.2739, allocations: 125.5 kB / 477 MB, free: 7.559 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004965/0.2789, allocations: 3.254 MB / 480.3 MB, free: 4.293 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01762/0.2965, allocations: 11.81 MB / 492.1 MB, free: 8.168 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/0.2998, allocations: 3.542 MB / 495.6 MB, free: 4.211 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00197/0.3017, allocations: 1.16 MB / 496.8 MB, free: 3.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002272/0.302, allocations: 122.4 kB / 496.9 MB, free: 2.914 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.61e-05/0.302, allocations: 47.88 kB / 496.9 MB, free: 2.859 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 3.026e-06/0.302, allocations: 0 / 496.9 MB, free: 2.859 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01361/0.3156, allocations: 7.367 MB / 0.4925 GB, free: 11.24 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.807e-05/0.3157, allocations: 72.66 kB / 0.4926 GB, free: 11.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002874/0.3185, allocations: 2.056 MB / 0.4946 GB, free: 9.062 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000109/0.3187, allocations: 53.7 kB / 0.4946 GB, free: 9.004 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001009/0.3197, allocations: 1.413 MB / 0.496 GB, free: 7.578 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004056/0.3201, allocations: 0.5384 MB / 0.4965 GB, free: 7.035 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005146/0.3206, allocations: 355.4 kB / 0.4969 GB, free: 6.68 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3207, allocations: 301.1 kB / 0.4971 GB, free: 6.383 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001688/0.3224, allocations: 0.8666 MB / 0.498 GB, free: 5.516 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001697/0.3241, allocations: 1.361 MB / 0.4993 GB, free: 3.949 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003014/0.3271, allocations: 2.334 MB / 0.5016 GB, free: 1.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/0.3271, allocations: 11.88 kB / 0.5016 GB, free: 1.395 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005371/0.3325, allocations: 3.267 MB / 0.5048 GB, free: 14.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.3325, allocations: 8 kB / 0.5048 GB, free: 14.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.295e-05/0.3325, allocations: 19.94 kB / 0.5048 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002206/0.3347, allocations: 0.8447 MB / 0.5057 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/0.3358, allocations: 347.4 kB / 0.506 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01793/0.3538, allocations: 20.58 MB / 0.5261 GB, free: 6.699 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001567/0.3553, allocations: 95.94 kB / 0.5262 GB, free: 6.605 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001293/0.3555, allocations: 79.98 kB / 0.5263 GB, free: 6.527 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001555/0.357, allocations: 0.9366 MB / 0.5272 GB, free: 5.582 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003755/0.3574, allocations: 234.5 kB / 0.5274 GB, free: 5.352 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/0.3616, allocations: 2.613 MB / 0.5299 GB, free: 2.676 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.3616, allocations: 16 kB / 0.53 GB, free: 2.66 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.966e-05/0.3617, allocations: 11.98 kB / 0.53 GB, free: 2.648 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/0.3617, allocations: 11.91 kB / 0.53 GB, free: 2.637 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008913/0.3706, allocations: 5.855 MB / 0.5357 GB, free: 12.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/0.3706, allocations: 7.938 kB / 0.5357 GB, free: 12.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007449/0.3713, allocations: 195.7 kB / 0.5359 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001754/0.3731, allocations: 0.7423 MB / 0.5366 GB, free: 11.62 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.711e-05/0.3732, allocations: 35.98 kB / 0.5367 GB, free: 11.58 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.186/0.5592, allocations: 18.15 MB / 0.5544 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.5592, allocations: 15.48 kB / 0.5544 GB, free: 107.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004877/0.5641, allocations: 3.79 MB / 0.5581 GB, free: 106.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008261/0.5649, allocations: 496.1 kB / 0.5586 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002186/0.5651, allocations: 32.38 kB / 0.5586 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009773/0.5661, allocations: 105.1 kB / 0.5587 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002792/0.5664, allocations: 141.8 kB / 0.5588 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.118e-05/0.5664, allocations: 49.75 kB / 0.5589 GB, free: 106 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001532/0.568, allocations: 1.405 MB / 0.5603 GB, free: 105.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.568, allocations: 0 / 0.5603 GB, free: 105.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001981/0.57, allocations: 0.6573 MB / 0.5609 GB, free: 105.4 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (2,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.004317/0.5743, allocations: 4.446 MB / 0.5652 GB, free: 103.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003363/0.5776, allocations: 3.38 MB / 0.5685 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.5776, allocations: 0 / 0.5685 GB, free: 101.3 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001788/0.5794, allocations: 2.136 MB / 0.5706 GB, free: 99.82 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002454/0.5819, allocations: 0.6837 MB / 0.5713 GB, free: 99.41 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02331/0.6052, allocations: 22.63 MB / 0.5934 GB, free: 77.34 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001291/0.6065, allocations: 2.292 MB / 0.5956 GB, free: 75.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001076/0.6076, allocations: 0.4949 MB / 0.5961 GB, free: 74.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008885/0.6084, allocations: 1.081 MB / 0.5972 GB, free: 73.43 MB / 462.1 MB Notification: Performance of SimCode: time 1.022e-06/0.6084, allocations: 0 / 0.5972 GB, free: 73.43 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1089/0.7173, allocations: 60.52 MB / 0.6563 GB, free: 13.59 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/13.34, allocations: 7.859 kB / 0.6563 GB, free: 13.58 MB / 462.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.479131399995822]