Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 112.2 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009728/0.0009728, allocations: 43.94 kB / 300.1 MB, free: 5.973 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0819/0.08289, allocations: 49.44 MB / 349.5 MB, free: 4.52 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01246/0.09539, allocations: 11.8 MB / 361.3 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006883/0.1023, allocations: 3.926 MB / 365.2 MB, free: 4.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001586/0.1039, allocations: 71.62 kB / 365.3 MB, free: 4.656 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001878/0.1058, allocations: 0.7652 MB / 366.1 MB, free: 3.887 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002289/0.1082, allocations: 0.8627 MB / 366.9 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009869/0.1092, allocations: 499.5 kB / 367.4 MB, free: 2.531 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1453/0.2545, allocations: 3.707 MB / 371.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003015/0.2575, allocations: 2.633 MB / 373.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001769/0.2593, allocations: 1.388 MB / 375.2 MB, free: 9.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002268/0.2616, allocations: 1.947 MB / 377.1 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005557/0.2622, allocations: 262.8 kB / 377.4 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000949/0.2631, allocations: 388.3 kB / 377.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009826/0.2641, allocations: 1.083 MB / 378.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001473/0.2656, allocations: 1.752 MB / 380.6 MB, free: 8.984 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004334/0.2699, allocations: 5.467 MB / 386 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.27, allocations: 1.25 kB / 386 MB, free: 7.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.27, allocations: 3.75 kB / 386 MB, free: 7.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001087/0.2701, allocations: 4 kB / 386 MB, free: 7.266 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007559/0.2777, allocations: 3.93 MB / 390 MB, free: 4.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.2777, allocations: 9.344 kB / 390 MB, free: 4.602 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004672/0.2782, allocations: 418.9 kB / 390.4 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009315/0.2791, allocations: 406.5 kB / 390.8 MB, free: 4.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00293/0.2821, allocations: 2.071 MB / 392.9 MB, free: 2.734 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001636/0.2822, allocations: 225.4 kB / 393.1 MB, free: 2.633 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003853/0.2826, allocations: 297.3 kB / 393.4 MB, free: 2.535 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005114/0.2877, allocations: 3.852 MB / 397.2 MB, free: 288 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.041e-05/0.2878, allocations: 12.66 kB / 397.2 MB, free: 280 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002334/0.2881, allocations: 120.3 kB / 397.4 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001112/0.2882, allocations: 147.6 kB / 397.5 MB, free: 160 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004666/0.2928, allocations: 3.263 MB / 400.8 MB, free: 14.3 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01627/0.3091, allocations: 12.15 MB / 412.9 MB, free: 2.051 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002327/0.3115, allocations: 1.932 MB / 414.8 MB, free: 8 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001754/0.3132, allocations: 1.159 MB / 416 MB, free: 14.85 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002834/0.3135, allocations: 213.6 kB / 416.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.3136, allocations: 51.88 kB / 416.3 MB, free: 14.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 2.986e-06/0.3136, allocations: 4 kB / 416.3 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01307/0.3267, allocations: 6.998 MB / 423.3 MB, free: 7.438 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.779e-05/0.3267, allocations: 68.72 kB / 423.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003459/0.3302, allocations: 2.034 MB / 425.4 MB, free: 5.289 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002125/0.3304, allocations: 53.7 kB / 425.4 MB, free: 5.23 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001435/0.3319, allocations: 1.458 MB / 426.9 MB, free: 3.762 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006041/0.3325, allocations: 0.5403 MB / 427.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005866/0.3331, allocations: 347.2 kB / 427.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.3332, allocations: 309.1 kB / 428.1 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00143/0.3346, allocations: 0.8745 MB / 428.9 MB, free: 1.703 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002235/0.3369, allocations: 1.45 MB / 430.4 MB, free: 12 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003398/0.3403, allocations: 2.501 MB / 432.9 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.731e-05/0.3403, allocations: 8 kB / 432.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.005518/0.3459, allocations: 3.01 MB / 435.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.448e-05/0.3459, allocations: 15.94 kB / 435.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-05/0.346, allocations: 20 kB / 435.9 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009765/0.3469, allocations: 390.5 kB / 436.3 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001739/0.3487, allocations: 473.3 kB / 436.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006438/0.3551, allocations: 6.138 MB / 442.9 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/0.3573, allocations: 127.8 kB / 443 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004003/0.3577, allocations: 88.05 kB / 443.1 MB, free: 2.82 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002108/0.3599, allocations: 0.938 MB / 444.1 MB, free: 1.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007023/0.3606, allocations: 217.3 kB / 444.3 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005269/0.3658, allocations: 2.595 MB / 446.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.3659, allocations: 16 kB / 446.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.186e-05/0.3659, allocations: 4 kB / 446.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.723e-05/0.3659, allocations: 7.969 kB / 446.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01149/0.3774, allocations: 5.852 MB / 452.7 MB, free: 9.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/0.3775, allocations: 4 kB / 452.8 MB, free: 9.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001306/0.3788, allocations: 289.5 kB / 453 MB, free: 8.844 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001073/0.3799, allocations: 410.2 kB / 453.4 MB, free: 8.438 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001464/0.38, allocations: 43.98 kB / 453.5 MB, free: 8.395 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006847/0.3869, allocations: 7.585 MB / 461.1 MB, free: 324 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.3869, allocations: 7.469 kB / 461.1 MB, free: 320 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006094/0.393, allocations: 3.839 MB / 464.9 MB, free: 12.39 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001276/0.3943, allocations: 490.2 kB / 465.4 MB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006013/0.3949, allocations: 32 kB / 465.4 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001322/0.3963, allocations: 95.89 kB / 465.5 MB, free: 11.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002405/0.3965, allocations: 115.8 kB / 465.6 MB, free: 11.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.3966, allocations: 47.98 kB / 465.7 MB, free: 11.61 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002407/0.399, allocations: 1.382 MB / 467.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.399, allocations: 3.938 kB / 467.1 MB, free: 10.21 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002236/0.4013, allocations: 0.5664 MB / 467.6 MB, free: 9.641 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,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.006374/0.4077, allocations: 4.491 MB / 472.1 MB, free: 5.074 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004035/0.4117, allocations: 2.632 MB / 474.8 MB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4117, allocations: 0 / 474.8 MB, free: 2.453 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002091/0.4138, allocations: 1.566 MB / 476.3 MB, free: 0.8711 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003145/0.417, allocations: 0.5268 MB / 476.8 MB, free: 356 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0518/0.4688, allocations: 25.93 MB / 0.491 GB, free: 4.379 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004026/0.4729, allocations: 2.255 MB / 0.4932 GB, free: 2.094 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003362/0.4763, allocations: 0.5259 MB / 0.4937 GB, free: 1.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002905/0.4792, allocations: 1.198 MB / 0.4949 GB, free: 380 kB / 414.1 MB Notification: Performance of SimCode: time 1.002e-06/0.4792, allocations: 0 / 0.4949 GB, free: 380 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2275/0.7067, allocations: 51.94 MB / 0.5456 GB, free: 148.6 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001499/0.7069, allocations: 258.6 kB / 0.5458 GB, free: 148.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.066/3.773, allocations: 0 / 0.5458 GB, free: 148.4 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches