Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.0008542/0.0008542, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007753/0.0007753, allocations: 156.9 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8816/0.8816, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.356e-05/1.474e-05, allocations: 3.266 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.008143/0.008158, allocations: 10.06 MB / 334.6 MB, free: 5.781 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003818/0.01198, allocations: 3.415 MB / 338 MB, free: 2.352 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005253/0.0125, allocations: 87.44 kB / 338.1 MB, free: 2.266 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.01382, allocations: 0.846 MB / 338.9 MB, free: 1.414 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001158/0.01498, allocations: 1.013 MB / 340 MB, free: 400 kB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004447/0.01542, allocations: 451.2 kB / 340.4 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00199/0.01741, allocations: 3.89 MB / 344.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.0189, allocations: 1.542 MB / 345.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001636/0.02054, allocations: 2.475 MB / 348.3 MB, free: 7.961 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001267/0.02181, allocations: 1.75 MB / 350.1 MB, free: 6.207 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003009/0.02211, allocations: 416 kB / 350.5 MB, free: 5.801 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004794/0.02259, allocations: 0.4958 MB / 351 MB, free: 5.305 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000635/0.02322, allocations: 1.25 MB / 352.2 MB, free: 4.051 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001091/0.02431, allocations: 1.341 MB / 353.5 MB, free: 2.707 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002955/0.02727, allocations: 5.632 MB / 359.2 MB, free: 13.06 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.02727, allocations: 0 / 359.2 MB, free: 13.06 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.02727, allocations: 4 kB / 359.2 MB, free: 13.05 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.0273, allocations: 0 / 359.2 MB, free: 13.05 MB / 330.7 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.003761/0.03106, allocations: 3.801 MB / 363 MB, free: 9.199 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.03109, allocations: 11.98 kB / 363 MB, free: 9.188 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003213/0.03142, allocations: 413 kB / 363.4 MB, free: 8.773 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004873/0.0319, allocations: 406.6 kB / 363.8 MB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002002/0.0339, allocations: 2.004 MB / 365.8 MB, free: 6.324 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.848e-05/0.034, allocations: 214.1 kB / 366 MB, free: 6.113 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.03425, allocations: 284.3 kB / 366.3 MB, free: 5.836 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/0.03796, allocations: 4.166 MB / 370.5 MB, free: 1.508 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.4e-05/0.03801, allocations: 11.94 kB / 370.5 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001688/0.03818, allocations: 124 kB / 370.6 MB, free: 1.375 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.94e-05/0.03825, allocations: 117.5 kB / 370.7 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003069/0.04132, allocations: 3.242 MB / 373.9 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01014/0.05145, allocations: 10.77 MB / 384.7 MB, free: 2.914 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001554/0.05301, allocations: 1.724 MB / 386.4 MB, free: 1.215 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001164/0.05417, allocations: 1.161 MB / 387.6 MB, free: 60 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001401/0.05431, allocations: 53.22 kB / 387.7 MB, free: 4 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.05435, allocations: 51.81 kB / 387.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=136): time 2.996e-06/0.05435, allocations: 0 / 387.7 MB, free: 15.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=151): time 0.007724/0.06208, allocations: 6.517 MB / 394.2 MB, free: 9.383 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.06211, allocations: 68.72 kB / 394.3 MB, free: 9.305 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002134/0.06424, allocations: 2.099 MB / 396.4 MB, free: 7.164 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.845e-05/0.06431, allocations: 53.7 kB / 396.4 MB, free: 7.105 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006155/0.06493, allocations: 1.405 MB / 397.8 MB, free: 5.688 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/0.06517, allocations: 0.5306 MB / 398.4 MB, free: 5.152 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003119/0.06548, allocations: 347.4 kB / 398.7 MB, free: 4.809 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.926e-05/0.06554, allocations: 305.1 kB / 399 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008384/0.06638, allocations: 0.8627 MB / 399.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001034/0.06741, allocations: 1.365 MB / 401.2 MB, free: 2.066 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002097/0.06951, allocations: 2.326 MB / 403.6 MB, free: 15.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.06951, allocations: 7.938 kB / 403.6 MB, free: 15.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003126/0.07264, allocations: 3.196 MB / 406.8 MB, free: 12.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.07266, allocations: 12 kB / 406.8 MB, free: 12.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.07267, allocations: 16 kB / 406.8 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00118/0.07385, allocations: 0.8446 MB / 407.6 MB, free: 11.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006053/0.07446, allocations: 343.4 kB / 408 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01067/0.08513, allocations: 19.34 MB / 427.3 MB, free: 6.453 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000826/0.08595, allocations: 104 kB / 427.4 MB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.749e-05/0.08604, allocations: 72 kB / 427.5 MB, free: 6.281 MB / 394.7 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.001139/0.08718, allocations: 0.9422 MB / 428.4 MB, free: 5.328 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002025/0.08738, allocations: 222.6 kB / 428.6 MB, free: 5.109 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003233/0.09062, allocations: 2.55 MB / 431.2 MB, free: 2.512 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.09063, allocations: 20.03 kB / 431.2 MB, free: 2.492 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.09064, allocations: 8 kB / 431.2 MB, free: 2.484 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.09065, allocations: 7.969 kB / 431.2 MB, free: 2.477 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007063/0.09772, allocations: 5.469 MB / 436.7 MB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.546e-06/0.09773, allocations: 4 kB / 436.7 MB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004456/0.09817, allocations: 195.7 kB / 436.9 MB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.09931, allocations: 0.7269 MB / 437.6 MB, free: 11.9 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.244e-05/0.09939, allocations: 43.92 kB / 437.7 MB, free: 11.86 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1551/0.2545, allocations: 17.02 MB / 454.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.2545, allocations: 7.219 kB / 454.7 MB, free: 107.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003694/0.2582, allocations: 3.721 MB / 458.4 MB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006769/0.2589, allocations: 418.1 kB / 458.8 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.259, allocations: 38.94 kB / 458.9 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005408/0.2596, allocations: 104.9 kB / 459 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.2598, allocations: 150.3 kB / 459.1 MB, free: 106 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.288e-05/0.2599, allocations: 42.84 kB / 459.2 MB, free: 106 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00123/0.2611, allocations: 1.405 MB / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2611, allocations: 0 / 460.6 MB, free: 105.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001455/0.2625, allocations: 0.661 MB / 461.2 MB, free: 105.4 MB / 410.7 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.003218/0.2658, allocations: 4.36 MB / 465.6 MB, free: 102.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002448/0.2682, allocations: 3.367 MB / 468.9 MB, free: 99.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.979e-06/0.2682, allocations: 4 kB / 469 MB, free: 99.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001209/0.2694, allocations: 2.136 MB / 471.1 MB, free: 97.45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.2712, allocations: 0.6835 MB / 471.8 MB, free: 96.92 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02335/0.2946, allocations: 22.5 MB / 494.3 MB, free: 74.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.2957, allocations: 1.735 MB / 496 MB, free: 72.8 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001007/0.2967, allocations: 0.4909 MB / 496.5 MB, free: 72.32 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007627/0.2975, allocations: 1.086 MB / 497.6 MB, free: 71.23 MB / 410.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2975, allocations: 0 / 497.6 MB, free: 71.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09021/0.3877, allocations: 64.02 MB / 0.5484 GB, free: 7.828 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.452/9.84, allocations: 18.8 kB / 0.5485 GB, free: 7.812 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.601574184373021] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaLoad.phi', 'inertiaLoad.w', 'smpm.is[1]', 'smpm.is[2]', 'smpm.idq_sr[1]', 'smpm.idq_sr[2]', 'tauElectrical', 'tauShaft', 'wMechanical'] 9.958322374150157 9.970997223 9.94184586 Calling exit ...