Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000971/0.000971, allocations: 88.52 kB / 19.94 MB, free: 4.605 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009515/0.0009515, allocations: 173.9 kB / 23.21 MB, free: 1.328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9096/0.9096, allocations: 177.1 MB / 203.5 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo): time 0.008694/0.008694, allocations: 1.198 MB / 261.1 MB, free: 12.09 MB / 250.7 MB " [Timeout remaining time 180] Using package ElectricBraking with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ElectricBraking 1.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") translateModel(ElectricBraking.Examples.Rotational.SMPMBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.013e-06/2.013e-06, allocations: 0 / 383.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.003e-05/2.204e-05, allocations: 5.094 kB / 383.5 MB, free: 13.96 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ElectricBraking.Examples.Rotational.SMPMBraking): time 0.006316/0.006338, allocations: 5.126 MB / 388.6 MB, free: 8.797 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002691/0.009029, allocations: 1.849 MB / 390.5 MB, free: 6.941 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002775/0.009307, allocations: 47.62 kB / 390.5 MB, free: 6.895 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000618/0.009924, allocations: 353.5 kB / 390.9 MB, free: 6.547 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006289/0.01055, allocations: 468.9 kB / 391.3 MB, free: 6.086 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002333/0.01079, allocations: 215.5 kB / 391.5 MB, free: 5.875 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00102/0.01181, allocations: 1.854 MB / 393.4 MB, free: 4.012 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006981/0.0125, allocations: 0.8209 MB / 394.2 MB, free: 3.156 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008558/0.01336, allocations: 1.216 MB / 395.4 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00096/0.01432, allocations: 0.869 MB / 396.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.0145, allocations: 215.9 kB / 396.5 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002646/0.01476, allocations: 240 kB / 396.8 MB, free: 0.6211 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003077/0.01507, allocations: 0.5686 MB / 397.3 MB, free: 52 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000459/0.01553, allocations: 0.6665 MB / 398 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001474/0.017, allocations: 2.676 MB / 400.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.537e-06/0.01701, allocations: 0 / 400.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.01701, allocations: 4 kB / 400.7 MB, free: 12.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.01703, allocations: 4 kB / 400.7 MB, free: 12.69 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 0.002035/0.01906, allocations: 2.002 MB / 402.7 MB, free: 10.65 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.0191, allocations: 8.031 kB / 402.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003371/0.01943, allocations: 203.8 kB / 402.9 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001414/0.02085, allocations: 1.033 MB / 403.9 MB, free: 9.375 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.943e-05/0.02091, allocations: 107.3 kB / 404 MB, free: 9.27 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001432/0.02105, allocations: 148.4 kB / 404.2 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001977/0.02303, allocations: 2.162 MB / 406.3 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.233e-05/0.02306, allocations: 15.94 kB / 406.3 MB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.092e-05/0.02315, allocations: 60 kB / 406.4 MB, free: 6.809 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.66e-05/0.0232, allocations: 58.94 kB / 406.5 MB, free: 6.75 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001693/0.02489, allocations: 1.647 MB / 408.1 MB, free: 5.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0084/0.03329, allocations: 4.641 MB / 412.7 MB, free: 372 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1577/0.191, allocations: 1.025 MB / 413.8 MB, free: 38.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006395/0.1917, allocations: 0.5602 MB / 414.3 MB, free: 38.51 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.676e-05/0.1917, allocations: 9.078 kB / 414.3 MB, free: 38.51 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.963e-05/0.1917, allocations: 47.86 kB / 414.4 MB, free: 38.46 MB / 330.7 MB Notification: Performance of pre-optimization done (n=78): time 2.575e-06/0.1917, allocations: 0 / 414.4 MB, free: 38.46 MB / 330.7 MB Notification: Performance of matching and sorting (n=86): time 0.005589/0.1973, allocations: 4.275 MB / 418.7 MB, free: 37.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.463e-05/0.1973, allocations: 61.28 kB / 418.7 MB, free: 36.98 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007229/0.1981, allocations: 0.7831 MB / 419.5 MB, free: 36.66 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.981e-05/0.1981, allocations: 41.55 kB / 419.5 MB, free: 36.62 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.1984, allocations: 0.6636 MB / 420.2 MB, free: 36.19 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.1985, allocations: 305.9 kB / 420.5 MB, free: 35.99 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001632/0.1987, allocations: 158.8 kB / 420.7 MB, free: 35.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.1988, allocations: 398.3 kB / 421.1 MB, free: 35.56 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000491/0.1992, allocations: 483.3 kB / 421.5 MB, free: 35.4 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005318/0.1998, allocations: 0.6312 MB / 422.2 MB, free: 35.07 MB / 330.7 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003462/0.2032, allocations: 2.46 MB / 424.6 MB, free: 34.18 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.046e-06/0.2032, allocations: 1.062 kB / 424.6 MB, free: 34.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001957/0.2052, allocations: 1.761 MB / 426.4 MB, free: 33.52 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.2052, allocations: 7.562 kB / 426.4 MB, free: 33.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.527e-06/0.2052, allocations: 4.469 kB / 426.4 MB, free: 33.52 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009383/0.2062, allocations: 0.6069 MB / 427 MB, free: 33.38 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003118/0.2065, allocations: 141.7 kB / 427.1 MB, free: 33.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005682/0.2122, allocations: 7.795 MB / 434.9 MB, free: 27.58 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004512/0.2126, allocations: 49.81 kB / 435 MB, free: 27.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.696e-05/0.2127, allocations: 31.3 kB / 435 MB, free: 27.55 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: smpm.inertiaRotor.phi = $START.smpm.inertiaRotor.phi. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (switch.control[3],switch.control[2],switch.control[1],integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 80 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(5,14,76.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006325/0.2133, allocations: 0.524 MB / 435.5 MB, free: 27.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.298e-05/0.2134, allocations: 95.53 kB / 435.6 MB, free: 27.14 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001551/0.2149, allocations: 1.687 MB / 437.3 MB, free: 25.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.2149, allocations: 11.94 kB / 437.3 MB, free: 25.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2149, allocations: 4 kB / 437.3 MB, free: 25.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2149, allocations: 7.984 kB / 437.3 MB, free: 25.61 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00287/0.2178, allocations: 3.046 MB / 440.4 MB, free: 22.52 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.2178, allocations: 0 / 440.4 MB, free: 22.52 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000275/0.2181, allocations: 115.9 kB / 440.5 MB, free: 22.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007787/0.2189, allocations: 0.5618 MB / 441.1 MB, free: 21.84 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.693e-05/0.2189, allocations: 23.98 kB / 441.1 MB, free: 21.82 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003553/0.2225, allocations: 6.957 MB / 448 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.2225, allocations: 4.656 kB / 448 MB, free: 14.57 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.2244, allocations: 2.398 MB / 450.4 MB, free: 12.13 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.2247, allocations: 203.4 kB / 450.6 MB, free: 11.93 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.173e-05/0.2247, allocations: 20 kB / 450.7 MB, free: 11.91 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002633/0.225, allocations: 47.95 kB / 450.7 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001308/0.2251, allocations: 80.45 kB / 450.8 MB, free: 11.78 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.019e-05/0.2251, allocations: 20 kB / 450.8 MB, free: 11.76 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003885/0.2255, allocations: 0.5576 MB / 451.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2255, allocations: 0 / 451.4 MB, free: 11.21 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000736/0.2263, allocations: 327.9 kB / 451.7 MB, free: 10.89 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (inertiaLoad.w,integrator.y,heatCapacitor.T,smpm.inertiaRotor.phi,smpm.clarkeParkConverter.idq[1],smpm.clarkeParkConverter.idq[2]) * Number of discrete variables: 3 (switch.control[1],switch.control[2],switch.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,14,76.0%), (2,1,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.0001164/0.2264, allocations: 127 kB / 451.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001514/0.2279, allocations: 1.73 MB / 453.5 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2279, allocations: 0 / 453.5 MB, free: 8.992 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009055/0.2288, allocations: 1.144 MB / 454.7 MB, free: 7.812 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006774/0.2295, allocations: 279.8 kB / 455 MB, free: 7.559 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002683/0.2322, allocations: 3.071 MB / 458 MB, free: 4.453 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004537/0.2326, allocations: 0.8814 MB / 458.9 MB, free: 3.543 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001447/0.2328, allocations: 64.48 kB / 459 MB, free: 3.48 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2328, allocations: 0 / 459 MB, free: 3.48 MB / 330.7 MB Notification: Performance of Templates: time 0.02684/0.2596, allocations: 40.33 MB / 499.3 MB, free: 11.19 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.makefile [Timeout 660] (rm -f ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; mkfifo ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe ; head -c 1048576 < ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe >> ../files/ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.sim & ./ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking > ElectricBraking_ElectricBraking.Examples.Rotational.SMPMBraking.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 6.607236178126186]