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.0009305/0.0009305, allocations: 95.5 kB / 21.2 MB, free: 3.371 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.0009669/0.0009669, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 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 1.002/1.002, allocations: 177 MB / 204.8 MB, free: 5.578 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.[0-9,]+.|smpm.idq_sr.[0-9,]+.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 3.938 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.851e-05, allocations: 5.266 kB / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01372/0.01374, allocations: 11.37 MB / 284.3 MB, free: 5.996 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006723/0.02047, allocations: 3.548 MB / 287.9 MB, free: 2.434 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001204/0.02167, allocations: 91.38 kB / 287.9 MB, free: 2.344 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001439/0.02311, allocations: 0.8421 MB / 288.8 MB, free: 1.496 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001872/0.02498, allocations: 1.013 MB / 289.8 MB, free: 488 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008087/0.02579, allocations: 447.2 kB / 290.2 MB, free: 40 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1208/0.1466, allocations: 3.883 MB / 294.1 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002208/0.1488, allocations: 1.55 MB / 295.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003551/0.1524, allocations: 2.495 MB / 298.2 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002937/0.1553, allocations: 1.904 MB / 300.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001191/0.1565, allocations: 418.8 kB / 300.5 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001082/0.1576, allocations: 0.491 MB / 301 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007703/0.1584, allocations: 1.265 MB / 302.2 MB, free: 13.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0013/0.1597, allocations: 1.362 MB / 303.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002294/0.162, allocations: 3.174 MB / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.162, allocations: 0.5625 kB / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.804e-06/0.162, allocations: 0.6562 kB / 306.8 MB, free: 11.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.577e-05/0.162, allocations: 3.531 kB / 306.8 MB, free: 11.74 MB / 266.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.00355/0.1656, allocations: 4.05 MB / 310.8 MB, free: 9.352 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.1656, allocations: 14.23 kB / 310.8 MB, free: 9.348 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007093/0.1663, allocations: 0.6365 MB / 311.5 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.1681, allocations: 1.911 MB / 313.4 MB, free: 6.961 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.343e-05/0.1682, allocations: 214.1 kB / 313.6 MB, free: 6.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002192/0.1684, allocations: 286.5 kB / 313.9 MB, free: 6.473 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002407/0.1708, allocations: 2.529 MB / 316.4 MB, free: 3.777 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.047e-05/0.1709, allocations: 11.98 kB / 316.4 MB, free: 3.766 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001515/0.171, allocations: 119 kB / 316.5 MB, free: 3.652 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7e-05/0.1711, allocations: 121.5 kB / 316.6 MB, free: 3.531 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001703/0.1728, allocations: 1.077 MB / 317.7 MB, free: 2.457 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008971/0.1818, allocations: 9.977 MB / 327.7 MB, free: 8.426 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001204/0.183, allocations: 1.076 MB / 328.8 MB, free: 7.391 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009218/0.1839, allocations: 0.6615 MB / 329.4 MB, free: 6.734 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001639/0.184, allocations: 53.28 kB / 329.5 MB, free: 6.684 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.1841, allocations: 56.38 kB / 329.5 MB, free: 6.621 MB / 282.7 MB Notification: Performance of pre-optimization done (n=136): time 3.907e-06/0.1841, allocations: 4 kB / 329.6 MB, free: 6.617 MB / 282.7 MB Notification: Performance of matching and sorting (n=151): time 0.005927/0.19, allocations: 3.874 MB / 333.4 MB, free: 2.73 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.704e-05/0.19, allocations: 72.66 kB / 333.5 MB, free: 2.645 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.1916, allocations: 1.673 MB / 335.2 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.1916, allocations: 53.7 kB / 335.2 MB, free: 0.9062 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007217/0.1924, allocations: 1.511 MB / 336.7 MB, free: 15.38 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.1927, allocations: 0.5468 MB / 337.3 MB, free: 14.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003646/0.193, allocations: 361.1 kB / 337.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.719e-05/0.1931, allocations: 488.8 kB / 338.1 MB, free: 14 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004692/0.1936, allocations: 271.8 kB / 338.4 MB, free: 13.73 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007733/0.1944, allocations: 0.9823 MB / 339.4 MB, free: 12.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001385/0.1958, allocations: 1.395 MB / 340.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.336e-06/0.1958, allocations: 4 kB / 340.8 MB, free: 10.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002547/0.1983, allocations: 1.865 MB / 342.6 MB, free: 9.059 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.199e-05/0.1983, allocations: 12 kB / 342.6 MB, free: 9.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.1983, allocations: 16.5 kB / 342.6 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.1998, allocations: 0.6312 MB / 343.3 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006841/0.2005, allocations: 341 kB / 343.6 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.2107, allocations: 21.8 MB / 365.4 MB, free: 1.027 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000918/0.2116, allocations: 95.88 kB / 365.5 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.96e-05/0.2117, allocations: 79.94 kB / 365.6 MB, free: 0.8555 MB / 314.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.0006568/0.2124, allocations: 277.1 kB / 365.9 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002512/0.2127, allocations: 258.6 kB / 366.1 MB, free: 352 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.2145, allocations: 1.394 MB / 367.5 MB, free: 14.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/0.2145, allocations: 16 kB / 367.5 MB, free: 14.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.103e-05/0.2145, allocations: 11.94 kB / 367.5 MB, free: 14.89 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/0.2145, allocations: 8.078 kB / 367.5 MB, free: 14.88 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004963/0.2195, allocations: 3.964 MB / 371.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.501e-06/0.2195, allocations: 4 kB / 371.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004191/0.2199, allocations: 193.4 kB / 371.7 MB, free: 10.64 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001118/0.221, allocations: 0.5414 MB / 372.2 MB, free: 10.07 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.265e-05/0.2211, allocations: 39.98 kB / 372.3 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008201/0.2293, allocations: 19.08 MB / 391.4 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.2293, allocations: 4 kB / 391.4 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002552/0.2319, allocations: 2.002 MB / 393.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006006/0.2325, allocations: 374.5 kB / 393.7 MB, free: 3.352 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001596/0.2326, allocations: 39.98 kB / 393.8 MB, free: 3.312 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005305/0.2332, allocations: 100 kB / 393.9 MB, free: 3.215 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002248/0.2334, allocations: 136.4 kB / 394 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.124e-05/0.2334, allocations: 48 kB / 394 MB, free: 3.035 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001008/0.2345, allocations: 0.9394 MB / 395 MB, free: 2.105 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2345, allocations: 4 kB / 395 MB, free: 2.102 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001658/0.2361, allocations: 0.6562 MB / 395.6 MB, free: 1.445 MB / 346.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.0002953/0.2364, allocations: 201.5 kB / 395.8 MB, free: 1.254 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002411/0.2388, allocations: 3.025 MB / 398.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5e-06/0.2388, allocations: 11.53 kB / 398.9 MB, free: 14.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001372/0.2402, allocations: 2.308 MB / 401.2 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001455/0.2416, allocations: 0.6283 MB / 401.8 MB, free: 11.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.2474, allocations: 4.93 MB / 406.7 MB, free: 6.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006122/0.248, allocations: 0.7944 MB / 407.5 MB, free: 5.195 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0007431/0.2487, allocations: 397.5 kB / 407.9 MB, free: 4.805 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002412/0.249, allocations: 132.5 kB / 408.1 MB, free: 4.676 MB / 362.7 MB Notification: Performance of SimCode: time 1.633e-06/0.249, allocations: 0 / 408.1 MB, free: 4.676 MB / 362.7 MB Notification: Performance of Templates: time 0.158/0.407, allocations: 38.24 MB / 446.3 MB, free: 109.2 MB / 378.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.817702325992286]