Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001468/0.001468, allocations: 117.8 kB / 17.79 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001758/0.001758, allocations: 199.8 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.38/1.38, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001991/0.001991, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2564, allocations: 50.55 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01253/0.269, allocations: 11.91 MB / 420.7 MB, free: 5.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006932/0.2759, allocations: 4.046 MB / 424.7 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001861/0.2778, allocations: 71.69 kB / 424.8 MB, free: 1.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002502/0.2804, allocations: 0.8962 MB / 425.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002966/0.2834, allocations: 0.9629 MB / 426.7 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001396/0.2848, allocations: 0.5617 MB / 427.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004039/0.2888, allocations: 3.417 MB / 430.6 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004012/0.2929, allocations: 3.088 MB / 433.7 MB, free: 8.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002202/0.2951, allocations: 1.596 MB / 435.3 MB, free: 6.836 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003073/0.2982, allocations: 2.043 MB / 437.4 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001063/0.2992, allocations: 436 kB / 437.8 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001547/0.3008, allocations: 0.5467 MB / 438.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001496/0.3023, allocations: 1.258 MB / 439.6 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002288/0.3046, allocations: 1.94 MB / 441.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00511/0.3097, allocations: 5.689 MB / 447.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3098, allocations: 0 / 447.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3098, allocations: 4 kB / 447.2 MB, free: 10.89 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000101/0.3099, allocations: 0 / 447.2 MB, free: 10.89 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: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007401/0.3173, allocations: 3.939 MB / 451.2 MB, free: 6.883 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.3173, allocations: 16.02 kB / 451.2 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004917/0.3178, allocations: 418 kB / 451.6 MB, free: 6.449 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.3189, allocations: 420.3 kB / 452 MB, free: 6.035 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003752/0.3226, allocations: 2.13 MB / 454.1 MB, free: 3.852 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.3228, allocations: 237.9 kB / 454.4 MB, free: 3.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003887/0.3232, allocations: 291.9 kB / 454.7 MB, free: 3.332 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005744/0.329, allocations: 3.851 MB / 458.5 MB, free: 15.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.694e-05/0.329, allocations: 7.891 kB / 458.5 MB, free: 15.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002637/0.3293, allocations: 120 kB / 458.6 MB, free: 15.28 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001337/0.3295, allocations: 145.7 kB / 458.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005045/0.3345, allocations: 3.262 MB / 462 MB, free: 11.86 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01778/0.3523, allocations: 12.02 MB / 474.1 MB, free: 15.48 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002383/0.3547, allocations: 1.941 MB / 476 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001773/0.3565, allocations: 1.149 MB / 477.1 MB, free: 12.28 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002942/0.3568, allocations: 211.5 kB / 477.4 MB, free: 12.03 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.717e-05/0.3569, allocations: 51.88 kB / 477.4 MB, free: 11.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.226e-06/0.3569, allocations: 0 / 477.4 MB, free: 11.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01246/0.3693, allocations: 7.016 MB / 484.4 MB, free: 4.82 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.681e-05/0.3694, allocations: 68.72 kB / 484.5 MB, free: 4.742 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00264/0.3721, allocations: 2.04 MB / 486.5 MB, free: 2.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001023/0.3722, allocations: 49.7 kB / 486.6 MB, free: 2.609 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009441/0.3731, allocations: 1.46 MB / 488 MB, free: 1.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004284/0.3736, allocations: 0.5314 MB / 488.6 MB, free: 0.5938 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005032/0.3741, allocations: 347.3 kB / 488.9 MB, free: 252 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3742, allocations: 309.1 kB / 489.2 MB, free: 15.94 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001271/0.3755, allocations: 0.8706 MB / 490.1 MB, free: 15.07 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001607/0.3771, allocations: 1.458 MB / 491.5 MB, free: 13.36 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/0.3802, allocations: 2.506 MB / 494 MB, free: 10.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.3802, allocations: 8 kB / 494 MB, free: 10.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004684/0.3849, allocations: 3.01 MB / 497.1 MB, free: 7.547 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.3849, allocations: 16 kB / 497.1 MB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/0.385, allocations: 19.94 kB / 497.1 MB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008735/0.3859, allocations: 387.5 kB / 497.5 MB, free: 7.121 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001631/0.3875, allocations: 471.2 kB / 497.9 MB, free: 6.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005842/0.3933, allocations: 6.697 MB / 0.4928 GB, free: 15.55 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00174/0.3951, allocations: 143.7 kB / 0.4929 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001712/0.3953, allocations: 83.92 kB / 0.493 GB, free: 15.32 MB / 430.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.001579/0.3969, allocations: 0.9382 MB / 0.4939 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004439/0.3973, allocations: 209.4 kB / 0.4941 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004111/0.4015, allocations: 2.61 MB / 0.4967 GB, free: 11.52 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.353e-05/0.4015, allocations: 16 kB / 0.4967 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.906e-06/0.4015, allocations: 4 kB / 0.4967 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.614e-05/0.4015, allocations: 7.969 kB / 0.4967 GB, free: 11.49 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008899/0.4104, allocations: 5.815 MB / 0.5024 GB, free: 5.523 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.737e-06/0.4105, allocations: 4 kB / 0.5024 GB, free: 5.52 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001166/0.4116, allocations: 291.5 kB / 0.5027 GB, free: 5.234 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009425/0.4126, allocations: 411.4 kB / 0.5031 GB, free: 4.82 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000114/0.4127, allocations: 39.98 kB / 0.5031 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006987/0.4197, allocations: 8.257 MB / 0.5112 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.4197, allocations: 4 kB / 0.5112 GB, free: 11.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.4251, allocations: 3.842 MB / 0.5149 GB, free: 8.016 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.4263, allocations: 486.2 kB / 0.5154 GB, free: 7.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003974/0.4267, allocations: 43.98 kB / 0.5154 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001189/0.4279, allocations: 91.83 kB / 0.5155 GB, free: 7.387 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002332/0.4281, allocations: 117.1 kB / 0.5156 GB, free: 7.273 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.4282, allocations: 43.94 kB / 0.5157 GB, free: 7.23 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002403/0.4306, allocations: 1.386 MB / 0.517 GB, free: 5.824 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4306, allocations: 4 kB / 0.517 GB, free: 5.82 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002019/0.4327, allocations: 0.5664 MB / 0.5176 GB, free: 5.254 MB / 446.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.006101/0.4388, allocations: 4.481 MB / 0.522 GB, free: 0.6602 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004045/0.4428, allocations: 2.645 MB / 0.5245 GB, free: 13.96 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.811e-06/0.4429, allocations: 4.25 kB / 0.5245 GB, free: 13.95 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002122/0.445, allocations: 1.569 MB / 0.5261 GB, free: 12.33 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003048/0.448, allocations: 0.554 MB / 0.5266 GB, free: 11.79 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2129/0.661, allocations: 22.05 MB / 0.5481 GB, free: 120.4 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.6624, allocations: 2.256 MB / 0.5503 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001228/0.6636, allocations: 0.5335 MB / 0.5509 GB, free: 119.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/0.6647, allocations: 1.189 MB / 0.552 GB, free: 118.4 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/0.6647, allocations: 0 / 0.552 GB, free: 118.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07671/0.7414, allocations: 55.08 MB / 0.6058 GB, free: 66.29 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.26/14, allocations: 11.03 kB / 0.6058 GB, free: 66.28 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches