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.001346/0.001346, allocations: 115.3 kB / 21.17 MB, free: 0.7812 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.00182/0.00182, allocations: 217.3 kB / 24.47 MB, free: 4.359 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.428/1.428, allocations: 230.4 MB / 258.1 MB, free: 8.156 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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.is.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [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.001903/0.001903, allocations: 67.83 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2567, allocations: 53.32 MB / 432.1 MB, free: 7.406 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01351/0.2702, allocations: 11.54 MB / 443.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007049/0.2773, allocations: 3.606 MB / 447.2 MB, free: 8.195 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001441/0.2787, allocations: 71.62 kB / 447.3 MB, free: 8.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002252/0.281, allocations: 0.9008 MB / 448.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002672/0.2836, allocations: 0.9787 MB / 449.2 MB, free: 6.234 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001012/0.2847, allocations: 447.2 kB / 449.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004593/0.2892, allocations: 3.74 MB / 453.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002223/0.2915, allocations: 1.596 MB / 454.9 MB, free: 392 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00244/0.2939, allocations: 1.67 MB / 456.6 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004075/0.298, allocations: 2.02 MB / 458.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001115/0.2991, allocations: 420 kB / 459 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001413/0.3005, allocations: 0.4998 MB / 459.5 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001259/0.3018, allocations: 1.219 MB / 460.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002425/0.3042, allocations: 1.937 MB / 462.7 MB, free: 8.602 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006615/0.3108, allocations: 5.562 MB / 468.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3108, allocations: 0 / 468.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3108, allocations: 0 / 468.3 MB, free: 3.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001588/0.311, allocations: 0 / 468.3 MB, free: 3.02 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.008476/0.3195, allocations: 3.915 MB / 472.2 MB, free: 15.03 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3195, allocations: 8.031 kB / 472.2 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001021/0.3205, allocations: 410.5 kB / 472.6 MB, free: 14.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004202/0.3247, allocations: 2.069 MB / 474.6 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.3249, allocations: 214.1 kB / 474.9 MB, free: 12.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004839/0.3254, allocations: 295.8 kB / 475.1 MB, free: 12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007209/0.3326, allocations: 3.853 MB / 479 MB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.621e-05/0.3327, allocations: 11.89 kB / 479 MB, free: 8.047 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/0.333, allocations: 120 kB / 479.1 MB, free: 7.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001378/0.3332, allocations: 125.5 kB / 479.2 MB, free: 7.805 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006198/0.3394, allocations: 3.25 MB / 482.5 MB, free: 4.543 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02418/0.3636, allocations: 11.82 MB / 494.3 MB, free: 8.414 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003928/0.3675, allocations: 3.534 MB / 497.8 MB, free: 4.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002334/0.3698, allocations: 1.164 MB / 499 MB, free: 3.301 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002918/0.3701, allocations: 122.4 kB / 499.1 MB, free: 3.164 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.333e-05/0.3702, allocations: 47.88 kB / 499.2 MB, free: 3.105 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.188e-06/0.3702, allocations: 0 / 499.2 MB, free: 3.105 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01574/0.3859, allocations: 7.367 MB / 0.4947 GB, free: 11.49 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.386, allocations: 68.72 kB / 0.4947 GB, free: 11.41 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00412/0.3901, allocations: 2.06 MB / 0.4968 GB, free: 9.309 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001709/0.3903, allocations: 53.7 kB / 0.4968 GB, free: 9.25 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001257/0.3915, allocations: 1.401 MB / 0.4982 GB, free: 7.836 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005449/0.3921, allocations: 0.5384 MB / 0.4987 GB, free: 7.293 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006706/0.3927, allocations: 359.4 kB / 0.499 GB, free: 6.934 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.3929, allocations: 305.1 kB / 0.4993 GB, free: 6.633 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001503/0.3944, allocations: 0.8666 MB / 0.5002 GB, free: 5.766 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001946/0.3963, allocations: 1.373 MB / 0.5015 GB, free: 4.188 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003408/0.3997, allocations: 2.322 MB / 0.5038 GB, free: 1.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.105e-05/0.3997, allocations: 7.984 kB / 0.5038 GB, free: 1.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006072/0.4058, allocations: 3.275 MB / 0.507 GB, free: 14.32 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.4058, allocations: 12 kB / 0.507 GB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-05/0.4059, allocations: 16 kB / 0.507 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/0.4083, allocations: 0.8445 MB / 0.5078 GB, free: 13.41 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00124/0.4095, allocations: 347.4 kB / 0.5082 GB, free: 13.07 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02002/0.4296, allocations: 20.59 MB / 0.5283 GB, free: 6.938 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001784/0.4313, allocations: 99.88 kB / 0.5284 GB, free: 6.84 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003017/0.4316, allocations: 72.06 kB / 0.5284 GB, free: 6.77 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.001944/0.4336, allocations: 0.9382 MB / 0.5294 GB, free: 5.82 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006538/0.4342, allocations: 234.5 kB / 0.5296 GB, free: 5.59 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005011/0.4393, allocations: 2.609 MB / 0.5321 GB, free: 2.918 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.4393, allocations: 12 kB / 0.5321 GB, free: 2.906 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.649e-05/0.4393, allocations: 11.98 kB / 0.5322 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.905e-05/0.4393, allocations: 3.984 kB / 0.5322 GB, free: 2.891 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2165/0.6558, allocations: 5.855 MB / 0.5379 GB, free: 98.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.037e-05/0.6558, allocations: 3.156 kB / 0.5379 GB, free: 98.46 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000767/0.6566, allocations: 200.3 kB / 0.5381 GB, free: 98.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001741/0.6583, allocations: 0.7401 MB / 0.5388 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.005e-05/0.6584, allocations: 35.03 kB / 0.5388 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01057/0.669, allocations: 18.16 MB / 0.5566 GB, free: 82.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.669, allocations: 7.75 kB / 0.5566 GB, free: 82.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004536/0.6735, allocations: 3.803 MB / 0.5603 GB, free: 81.27 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009994/0.6745, allocations: 498 kB / 0.5608 GB, free: 81.08 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002662/0.6748, allocations: 33.5 kB / 0.5608 GB, free: 81.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6758, allocations: 103.1 kB / 0.5609 GB, free: 81.04 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.6761, allocations: 144.8 kB / 0.561 GB, free: 81.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.782e-05/0.6762, allocations: 47.28 kB / 0.5611 GB, free: 81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.00165/0.6778, allocations: 1.404 MB / 0.5624 GB, free: 80.46 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.6778, allocations: 3.312 kB / 0.5624 GB, free: 80.46 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001988/0.6798, allocations: 0.6555 MB / 0.5631 GB, free: 80.4 MB / 446.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.0003315/0.6801, allocations: 202 kB / 0.5633 GB, free: 80.28 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003465/0.6836, allocations: 3.36 MB / 0.5666 GB, free: 77.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.551e-06/0.6836, allocations: 4 kB / 0.5666 GB, free: 77.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001822/0.6854, allocations: 2.142 MB / 0.5687 GB, free: 75.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002648/0.6881, allocations: 0.6888 MB / 0.5693 GB, free: 74.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006807/0.6949, allocations: 5.83 MB / 0.575 GB, free: 68.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001352/0.6962, allocations: 2.249 MB / 0.5772 GB, free: 66.55 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004537/0.6967, allocations: 139.4 kB / 0.5774 GB, free: 66.42 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.6967, allocations: 0 / 0.5774 GB, free: 66.42 MB / 446.1 MB Notification: Performance of Templates: time 0.3512/1.048, allocations: 188.7 MB / 0.7616 GB, free: 171.2 MB / 0.5294 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile [Timeout 660] (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 & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.212188499979675]