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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=2000,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=2000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008109/0.0008108, allocations: 96.5 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009679/0.0009679, allocations: 207.8 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 227.7 MB / 247.5 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000221/0.000221, allocations: 7.984 kB / 308.4 MB, free: 0.8164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08361/0.08384, allocations: 51.53 MB / 359.9 MB, free: 13.29 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01065/0.09452, allocations: 10.79 MB / 370.7 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1661/0.2607, allocations: 3.512 MB / 374.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.2626, allocations: 60.59 kB / 374.3 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002705/0.2653, allocations: 0.7382 MB / 375 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003241/0.2686, allocations: 0.8501 MB / 375.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00139/0.27, allocations: 384.9 kB / 376.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005879/0.2759, allocations: 4.421 MB / 380.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003649/0.2796, allocations: 2.385 MB / 383.1 MB, free: 8.836 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002491/0.2821, allocations: 1.25 MB / 384.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003245/0.2854, allocations: 1.687 MB / 386 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009894/0.2864, allocations: 182.1 kB / 386.2 MB, free: 7.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001813/0.2882, allocations: 287 kB / 386.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00186/0.2901, allocations: 0.9158 MB / 387.4 MB, free: 7.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003249/0.2933, allocations: 1.644 MB / 389 MB, free: 6.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003879/0.2972, allocations: 4.412 MB / 393.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2972, allocations: 1.062 kB / 393.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.2972, allocations: 0 / 393.4 MB, free: 3.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001403/0.2974, allocations: 0 / 393.4 MB, free: 3.551 MB / 302.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.006453/0.3038, allocations: 3.24 MB / 396.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.3039, allocations: 12.41 kB / 396.7 MB, free: 1.398 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.3051, allocations: 394.2 kB / 397.1 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.3081, allocations: 1.986 MB / 399 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001372/0.3082, allocations: 217.8 kB / 399.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004082/0.3086, allocations: 281.1 kB / 399.5 MB, free: 15.67 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006918/0.3156, allocations: 3.862 MB / 403.4 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-05/0.3157, allocations: 11.98 kB / 403.4 MB, free: 12.6 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002714/0.3159, allocations: 120 kB / 403.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001182/0.3161, allocations: 117.5 kB / 403.6 MB, free: 12.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005448/0.3215, allocations: 3.262 MB / 406.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01979/0.3413, allocations: 11.97 MB / 418.9 MB, free: 12.9 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003449/0.3448, allocations: 3.665 MB / 422.5 MB, free: 8.824 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002079/0.3469, allocations: 1.242 MB / 423.8 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002535/0.3472, allocations: 129.8 kB / 423.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.3473, allocations: 47.88 kB / 424 MB, free: 7.383 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.206e-06/0.3473, allocations: 0 / 424 MB, free: 7.383 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01535/0.3626, allocations: 7.374 MB / 431.3 MB, free: 15.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.574e-05/0.3627, allocations: 68.72 kB / 431.4 MB, free: 15.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003484/0.3662, allocations: 2.076 MB / 433.5 MB, free: 13.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000276/0.3665, allocations: 53.64 kB / 433.5 MB, free: 13.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001116/0.3676, allocations: 1.372 MB / 434.9 MB, free: 12.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005655/0.3682, allocations: 0.5055 MB / 435.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002522/0.3685, allocations: 161.6 kB / 435.6 MB, free: 11.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.3686, allocations: 309.1 kB / 435.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001385/0.37, allocations: 0.8705 MB / 436.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001688/0.3717, allocations: 1.361 MB / 438.1 MB, free: 8.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003071/0.3748, allocations: 2.336 MB / 440.4 MB, free: 6.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.177e-06/0.3748, allocations: 4 kB / 440.4 MB, free: 6.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005824/0.3806, allocations: 3.281 MB / 443.7 MB, free: 2.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.155e-05/0.3807, allocations: 12 kB / 443.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.915e-05/0.3807, allocations: 16 kB / 443.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002457/0.3832, allocations: 0.8487 MB / 444.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/0.3845, allocations: 343.4 kB / 444.9 MB, free: 1.594 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0163/0.4008, allocations: 18.85 MB / 463.8 MB, free: 13.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001964/0.4028, allocations: 99.83 kB / 463.9 MB, free: 13.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000189/0.403, allocations: 75.94 kB / 463.9 MB, free: 13.11 MB / 382.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.00187/0.4049, allocations: 0.9468 MB / 464.9 MB, free: 12.15 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005291/0.4054, allocations: 221.3 kB / 465.1 MB, free: 11.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004428/0.4099, allocations: 2.637 MB / 467.7 MB, free: 9.23 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.491e-05/0.4099, allocations: 16 kB / 467.8 MB, free: 9.215 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.188e-05/0.4099, allocations: 4 kB / 467.8 MB, free: 9.211 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.45e-05/0.4099, allocations: 7.969 kB / 467.8 MB, free: 9.203 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009919/0.4199, allocations: 5.918 MB / 473.7 MB, free: 3.133 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.4199, allocations: 4 kB / 473.7 MB, free: 3.129 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007762/0.4207, allocations: 191.7 kB / 473.9 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0019/0.4226, allocations: 0.7366 MB / 474.6 MB, free: 2.176 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.4227, allocations: 40 kB / 474.7 MB, free: 2.137 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01486/0.4376, allocations: 16.73 MB / 491.4 MB, free: 80 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/0.4376, allocations: 4.109 kB / 491.4 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006305/0.4439, allocations: 3.812 MB / 495.2 MB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.4452, allocations: 482.3 kB / 495.7 MB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005848/0.4458, allocations: 35.94 kB / 495.7 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.4473, allocations: 115.9 kB / 495.8 MB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003647/0.4477, allocations: 144.9 kB / 496 MB, free: 11.37 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001123/0.4478, allocations: 44 kB / 496 MB, free: 11.32 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00252/0.4504, allocations: 1.408 MB / 497.4 MB, free: 9.895 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4504, allocations: 0 / 497.4 MB, free: 9.895 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002819/0.4532, allocations: 0.6602 MB / 498.1 MB, free: 9.234 MB / 414.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.0004567/0.4537, allocations: 199 kB / 498.3 MB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005218/0.4589, allocations: 3.445 MB / 0.49 GB, free: 5.449 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.474e-06/0.4589, allocations: 4 kB / 0.49 GB, free: 5.445 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.4616, allocations: 2.206 MB / 0.4921 GB, free: 3.113 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004497/0.4661, allocations: 0.6471 MB / 0.4927 GB, free: 2.473 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.4771, allocations: 7.076 MB / 0.4997 GB, free: 11.32 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002403/0.4795, allocations: 2.253 MB / 0.5019 GB, free: 9.039 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005907/0.4801, allocations: 143.4 kB / 0.502 GB, free: 8.898 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.4801, allocations: 0 / 0.502 GB, free: 8.898 MB / 430.1 MB Notification: Performance of Templates: time 0.3405/0.8207, allocations: 187.6 MB / 0.6852 GB, free: 10.04 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches