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.001868/0.001868, allocations: 111.1 kB / 20.44 MB, free: 1.352 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.002179/0.002179, allocations: 216.4 kB / 23.73 MB, free: 4.531 MB / 14.72 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.538/1.538, allocations: 230.5 MB / 257.4 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|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.1.|smpm.is.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|tauElectrical|tauShaft|wMechanical",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002178/0.002178, allocations: 67.88 kB / 378.2 MB, free: 2.395 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2456/0.2478, allocations: 53.41 MB / 431.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01351/0.2613, allocations: 10.05 MB / 441.7 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009406/0.2707, allocations: 3.404 MB / 445.1 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001406/0.2721, allocations: 83.44 kB / 445.2 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002492/0.2746, allocations: 0.8268 MB / 446 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002701/0.2773, allocations: 0.9825 MB / 447 MB, free: 7.125 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009681/0.2783, allocations: 443.4 kB / 447.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004639/0.2829, allocations: 3.763 MB / 451.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002365/0.2853, allocations: 1.542 MB / 452.7 MB, free: 1.309 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002646/0.2879, allocations: 1.709 MB / 454.4 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003135/0.291, allocations: 1.946 MB / 456.4 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007183/0.2918, allocations: 423.9 kB / 456.8 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.293, allocations: 0.492 MB / 457.3 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001276/0.2942, allocations: 1.219 MB / 458.5 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002277/0.2965, allocations: 1.575 MB / 460.1 MB, free: 9.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006415/0.3029, allocations: 5.609 MB / 465.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3029, allocations: 0 / 465.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3029, allocations: 0 / 465.7 MB, free: 4.301 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001208/0.3031, allocations: 4 kB / 465.7 MB, free: 4.297 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.008831/0.3119, allocations: 3.832 MB / 469.5 MB, free: 420 kB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.3119, allocations: 11.98 kB / 469.5 MB, free: 408 kB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001083/0.313, allocations: 410.6 kB / 470 MB, free: 15.99 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004288/0.3173, allocations: 2.001 MB / 472 MB, free: 13.95 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000195/0.3175, allocations: 210.1 kB / 472.2 MB, free: 13.75 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004776/0.318, allocations: 291.9 kB / 472.4 MB, free: 13.46 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00751/0.3255, allocations: 4.166 MB / 476.6 MB, free: 9.133 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-05/0.3256, allocations: 7.953 kB / 476.6 MB, free: 9.125 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/0.3259, allocations: 116 kB / 476.7 MB, free: 9.012 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001546/0.326, allocations: 121.5 kB / 476.8 MB, free: 8.891 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006042/0.332, allocations: 3.246 MB / 480.1 MB, free: 5.633 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0198/0.3518, allocations: 10.34 MB / 490.4 MB, free: 10.98 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002794/0.3546, allocations: 1.732 MB / 492.2 MB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002211/0.3569, allocations: 1.145 MB / 493.3 MB, free: 8.137 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002235/0.3571, allocations: 47.14 kB / 493.4 MB, free: 8.094 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.889e-05/0.3571, allocations: 51.88 kB / 493.4 MB, free: 8.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=136): time 4.127e-06/0.3571, allocations: 0 / 493.4 MB, free: 8.031 MB / 398.1 MB Notification: Performance of matching and sorting (n=151): time 0.01527/0.3724, allocations: 6.512 MB / 499.9 MB, free: 1.457 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.612e-05/0.3725, allocations: 72.72 kB / 500 MB, free: 1.375 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003254/0.3757, allocations: 1.904 MB / 0.4901 GB, free: 15.47 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001573/0.3759, allocations: 49.7 kB / 0.4902 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001253/0.3771, allocations: 1.416 MB / 0.4916 GB, free: 13.99 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005138/0.3776, allocations: 0.5346 MB / 0.4921 GB, free: 13.45 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006101/0.3783, allocations: 347.4 kB / 0.4924 GB, free: 13.1 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3784, allocations: 301.1 kB / 0.4927 GB, free: 12.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001476/0.3799, allocations: 0.8705 MB / 0.4936 GB, free: 11.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001888/0.3818, allocations: 1.365 MB / 0.4949 GB, free: 10.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003493/0.3853, allocations: 2.338 MB / 0.4972 GB, free: 7.816 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.497e-06/0.3853, allocations: 4 kB / 0.4972 GB, free: 7.812 MB / 414.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006015/0.3913, allocations: 3.18 MB / 0.5003 GB, free: 4.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.3913, allocations: 12 kB / 0.5003 GB, free: 4.578 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-05/0.3913, allocations: 16 kB / 0.5003 GB, free: 4.562 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/0.3939, allocations: 0.8448 MB / 0.5011 GB, free: 3.684 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/0.3952, allocations: 347.4 kB / 0.5015 GB, free: 3.344 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0201/0.4153, allocations: 19.12 MB / 0.5201 GB, free: 15.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.4171, allocations: 103.8 kB / 0.5202 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001826/0.4173, allocations: 75.98 kB / 0.5203 GB, free: 14.93 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.001985/0.4193, allocations: 0.9378 MB / 0.5212 GB, free: 13.98 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005593/0.4199, allocations: 210.7 kB / 0.5214 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004682/0.4245, allocations: 2.529 MB / 0.5239 GB, free: 11.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/0.4246, allocations: 16 kB / 0.5239 GB, free: 11.19 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.237e-05/0.4246, allocations: 8 kB / 0.5239 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.4246, allocations: 7.969 kB / 0.5239 GB, free: 11.18 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.4347, allocations: 5.13 MB / 0.5289 GB, free: 5.898 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/0.4347, allocations: 4.469 kB / 0.5289 GB, free: 5.895 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008159/0.4355, allocations: 195.7 kB / 0.5291 GB, free: 5.703 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001995/0.4375, allocations: 0.7342 MB / 0.5298 GB, free: 4.938 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.429e-05/0.4376, allocations: 35.98 kB / 0.5299 GB, free: 4.902 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2119/0.6495, allocations: 16.82 MB / 0.5463 GB, free: 89.46 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.92e-06/0.6495, allocations: 4.594 kB / 0.5463 GB, free: 89.46 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005415/0.655, allocations: 3.704 MB / 0.5499 GB, free: 87.98 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001054/0.656, allocations: 398.2 kB / 0.5503 GB, free: 87.89 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002838/0.6563, allocations: 35.47 kB / 0.5503 GB, free: 87.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/0.6573, allocations: 106.5 kB / 0.5504 GB, free: 87.85 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.6576, allocations: 140.2 kB / 0.5506 GB, free: 87.83 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.07e-05/0.6577, allocations: 49.22 kB / 0.5506 GB, free: 87.81 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001497/0.6592, allocations: 1.27 MB / 0.5519 GB, free: 87.35 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6592, allocations: 6.5 kB / 0.5519 GB, free: 87.35 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001967/0.6612, allocations: 0.6543 MB / 0.5525 GB, free: 87.29 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.0003146/0.6615, allocations: 209.3 kB / 0.5527 GB, free: 87.17 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003436/0.6649, allocations: 3.361 MB / 0.556 GB, free: 85.23 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/0.6649, allocations: 3.875 kB / 0.556 GB, free: 85.23 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.6668, allocations: 2.145 MB / 0.5581 GB, free: 83.37 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002284/0.6691, allocations: 0.6164 MB / 0.5587 GB, free: 82.9 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006493/0.6756, allocations: 5.762 MB / 0.5643 GB, free: 77.63 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001433/0.677, allocations: 1.732 MB / 0.566 GB, free: 76.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001092/0.6781, allocations: 481 kB / 0.5665 GB, free: 75.95 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003056/0.6784, allocations: 127.4 kB / 0.5666 GB, free: 75.83 MB / 446.1 MB Notification: Performance of SimCode: time 7.12e-07/0.6784, allocations: 0 / 0.5666 GB, free: 75.83 MB / 446.1 MB Notification: Performance of Templates: time 0.05187/0.7303, allocations: 41.7 MB / 0.6073 GB, free: 34.71 MB / 446.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 6.135546220466495]