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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001114/0.001113, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.339/1.339, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 63.92 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08658/0.08785, allocations: 50.54 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01261/0.1005, allocations: 11.45 MB / 369 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1539/0.2544, allocations: 3.582 MB / 372.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001156/0.2556, allocations: 67.69 kB / 372.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001775/0.2574, allocations: 0.8321 MB / 373.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001888/0.2593, allocations: 0.9303 MB / 374.5 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007529/0.2601, allocations: 443.7 kB / 374.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003096/0.2632, allocations: 3.73 MB / 378.6 MB, free: 9.016 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002802/0.266, allocations: 2.883 MB / 381.5 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002168/0.2682, allocations: 1.653 MB / 383.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002221/0.2704, allocations: 1.97 MB / 385.1 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006233/0.271, allocations: 418 kB / 385.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001033/0.2721, allocations: 0.5005 MB / 386 MB, free: 6.211 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.2731, allocations: 1.193 MB / 387.2 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00192/0.2751, allocations: 1.939 MB / 389.2 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004282/0.2794, allocations: 5.488 MB / 394.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.2794, allocations: 1.688 kB / 394.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2794, allocations: 4 kB / 394.7 MB, free: 1.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.645e-05/0.2795, allocations: 0 / 394.7 MB, free: 1.184 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.006664/0.2862, allocations: 3.816 MB / 398.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.614e-05/0.2862, allocations: 12.97 kB / 398.5 MB, free: 14.62 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004856/0.2867, allocations: 414.8 kB / 398.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009119/0.2876, allocations: 388.7 kB / 399.3 MB, free: 14.13 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002978/0.2906, allocations: 1.986 MB / 401.3 MB, free: 12.79 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001476/0.2908, allocations: 215 kB / 401.5 MB, free: 12.69 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/0.2911, allocations: 286.3 kB / 401.7 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005838/0.297, allocations: 3.856 MB / 405.6 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.134e-05/0.2971, allocations: 15.92 kB / 405.6 MB, free: 8.566 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.2973, allocations: 117.9 kB / 405.7 MB, free: 8.453 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001223/0.2975, allocations: 121.5 kB / 405.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005132/0.3026, allocations: 3.246 MB / 409.1 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01836/0.321, allocations: 11.91 MB / 421 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003172/0.3242, allocations: 3.66 MB / 424.7 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002043/0.3262, allocations: 1.235 MB / 425.9 MB, free: 3.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002651/0.3265, allocations: 132.9 kB / 426 MB, free: 3.484 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.441e-05/0.3266, allocations: 47.88 kB / 426.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=136): time 3.918e-06/0.3266, allocations: 1.859 kB / 426.1 MB, free: 3.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=151): time 0.01429/0.3409, allocations: 7.329 MB / 433.4 MB, free: 11.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.284e-05/0.341, allocations: 76.59 kB / 433.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00316/0.3441, allocations: 2.068 MB / 435.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001158/0.3442, allocations: 57.7 kB / 435.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009607/0.3452, allocations: 1.373 MB / 437 MB, free: 8.219 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003894/0.3456, allocations: 0.5028 MB / 437.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005524/0.3462, allocations: 347.2 kB / 437.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.576e-05/0.3463, allocations: 301.1 kB / 438.1 MB, free: 7.078 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.3476, allocations: 0.8705 MB / 439 MB, free: 6.207 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001652/0.3493, allocations: 1.372 MB / 440.4 MB, free: 4.629 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003023/0.3523, allocations: 2.321 MB / 442.7 MB, free: 2.105 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.031e-05/0.3523, allocations: 4 kB / 442.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.005592/0.3579, allocations: 3.279 MB / 446 MB, free: 14.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.362e-05/0.358, allocations: 12 kB / 446 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.358, allocations: 16 kB / 446 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002254/0.3603, allocations: 0.8503 MB / 446.8 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.3615, allocations: 343.4 kB / 447.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01701/0.3785, allocations: 20.59 MB / 467.8 MB, free: 7.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001735/0.3803, allocations: 95.83 kB / 467.9 MB, free: 7.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002097/0.3805, allocations: 75.98 kB / 467.9 MB, free: 7.227 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.001697/0.3822, allocations: 0.946 MB / 468.9 MB, free: 6.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004906/0.3827, allocations: 221.3 kB / 469.1 MB, free: 6.051 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004444/0.3872, allocations: 2.637 MB / 471.7 MB, free: 3.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.365e-05/0.3872, allocations: 16 kB / 471.7 MB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.3872, allocations: 4 kB / 471.8 MB, free: 3.336 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.593e-05/0.3872, allocations: 11.97 kB / 471.8 MB, free: 3.324 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009832/0.3971, allocations: 5.897 MB / 477.7 MB, free: 13.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.977e-06/0.3971, allocations: 4.453 kB / 477.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007817/0.3979, allocations: 203.7 kB / 477.9 MB, free: 13.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001868/0.3998, allocations: 0.7303 MB / 478.6 MB, free: 12.31 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001054/0.3999, allocations: 35.98 kB / 478.6 MB, free: 12.28 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01483/0.4147, allocations: 18.18 MB / 496.8 MB, free: 8.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.4148, allocations: 7.938 kB / 496.8 MB, free: 8.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005859/0.4206, allocations: 3.802 MB / 0.4889 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/0.4218, allocations: 482.3 kB / 0.4893 GB, free: 4.301 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005134/0.4223, allocations: 39.92 kB / 0.4894 GB, free: 4.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001323/0.4237, allocations: 99.91 kB / 0.4895 GB, free: 4.164 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/0.424, allocations: 141 kB / 0.4896 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.4241, allocations: 48 kB / 0.4897 GB, free: 3.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002325/0.4265, allocations: 1.404 MB / 0.491 GB, free: 2.555 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.4265, allocations: 0 / 0.491 GB, free: 2.555 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0026/0.4291, allocations: 0.6562 MB / 0.4917 GB, free: 1.898 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.006079/0.4352, allocations: 4.452 MB / 0.496 GB, free: 13.32 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006481/0.4417, allocations: 4.256 MB / 0.5002 GB, free: 8.926 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.4417, allocations: 4.125 kB / 0.5002 GB, free: 8.922 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002532/0.4442, allocations: 2.208 MB / 0.5023 GB, free: 6.586 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003611/0.4479, allocations: 0.6849 MB / 0.503 GB, free: 5.906 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1986/0.6465, allocations: 25.3 MB / 0.5277 GB, free: 141.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002823/0.6494, allocations: 2.293 MB / 0.5299 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002909/0.6523, allocations: 0.4957 MB / 0.5304 GB, free: 140.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001979/0.6543, allocations: 1.087 MB / 0.5315 GB, free: 140.8 MB / 446.1 MB Notification: Performance of SimCode: time 9.11e-07/0.6543, allocations: 1.562 kB / 0.5315 GB, free: 140.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1222/0.7765, allocations: 60.72 MB / 0.5908 GB, free: 96.25 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.21/10.99, allocations: 7.812 kB / 0.5908 GB, free: 96.25 MB / 446.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv","/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