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.0008091/0.0008092, allocations: 95.19 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009613/0.0009614, allocations: 202.2 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 227.7 MB / 246.8 MB, free: 11.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0001948/0.0001948, allocations: 11.94 kB / 307.8 MB, free: 0.707 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07681/0.07702, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.009978/0.08702, allocations: 11.21 MB / 370.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1482/0.2353, allocations: 3.952 MB / 374.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001079/0.2364, allocations: 68.38 kB / 374.6 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.2379, allocations: 0.766 MB / 375.4 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001978/0.2399, allocations: 0.8671 MB / 376.2 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008685/0.2408, allocations: 0.4928 MB / 376.7 MB, free: 9.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003135/0.2439, allocations: 3.707 MB / 380.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002457/0.2464, allocations: 2.585 MB / 383 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001521/0.2479, allocations: 1.176 MB / 384.2 MB, free: 7.262 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.2497, allocations: 1.666 MB / 385.9 MB, free: 6.629 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003073/0.25, allocations: 172.8 kB / 386 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006987/0.2507, allocations: 301.4 kB / 386.3 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008106/0.2515, allocations: 0.9354 MB / 387.3 MB, free: 6.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001188/0.2527, allocations: 1.598 MB / 388.9 MB, free: 5.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003307/0.256, allocations: 5.287 MB / 394.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.256, allocations: 0 / 394.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.256, allocations: 0 / 394.1 MB, free: 1.82 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.135e-05/0.2561, allocations: 1.125 kB / 394.1 MB, free: 1.82 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.005616/0.2617, allocations: 3.306 MB / 397.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.2618, allocations: 9.719 kB / 397.5 MB, free: 15.59 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005123/0.2623, allocations: 429.8 kB / 397.9 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001033/0.2633, allocations: 415 kB / 398.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002888/0.2662, allocations: 2.073 MB / 400.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.2664, allocations: 227.3 kB / 400.6 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003709/0.2668, allocations: 302.4 kB / 400.9 MB, free: 13.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005438/0.2722, allocations: 3.85 MB / 404.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.598e-05/0.2723, allocations: 15.83 kB / 404.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002439/0.2725, allocations: 119.9 kB / 404.9 MB, free: 10.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.2727, allocations: 153.7 kB / 405 MB, free: 10.1 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004765/0.2775, allocations: 3.259 MB / 408.3 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01581/0.2933, allocations: 12.21 MB / 420.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002173/0.2955, allocations: 1.944 MB / 422.4 MB, free: 8.293 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.2972, allocations: 1.166 MB / 423.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002538/0.2975, allocations: 215.2 kB / 423.8 MB, free: 6.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.686e-05/0.2975, allocations: 47.88 kB / 423.8 MB, free: 6.824 MB / 334.1 MB Notification: Performance of pre-optimization done (n=139): time 2.395e-06/0.2975, allocations: 4 kB / 423.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=155): time 0.01198/0.3095, allocations: 7.06 MB / 430.9 MB, free: 15.63 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.856e-05/0.3095, allocations: 68.72 kB / 431 MB, free: 15.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002557/0.3121, allocations: 2.028 MB / 433 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.906e-05/0.3122, allocations: 49.7 kB / 433.1 MB, free: 13.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008593/0.3131, allocations: 1.472 MB / 434.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000358/0.3135, allocations: 0.5315 MB / 435.1 MB, free: 11.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001968/0.3137, allocations: 157.6 kB / 435.2 MB, free: 11.26 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.292e-05/0.3137, allocations: 309.1 kB / 435.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001236/0.315, allocations: 0.8745 MB / 436.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001519/0.3165, allocations: 1.452 MB / 437.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002955/0.3195, allocations: 2.51 MB / 440.4 MB, free: 5.629 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.514e-06/0.3195, allocations: 8 kB / 440.4 MB, free: 5.621 MB / 350.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004396/0.3239, allocations: 3.014 MB / 443.4 MB, free: 2.566 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.3239, allocations: 12 kB / 443.4 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.895e-05/0.324, allocations: 16 kB / 443.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008042/0.3248, allocations: 395.5 kB / 443.8 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/0.3263, allocations: 467.2 kB / 444.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004981/0.3313, allocations: 6.158 MB / 450.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001543/0.3329, allocations: 139.7 kB / 450.5 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.333, allocations: 83.98 kB / 450.6 MB, free: 10.91 MB / 366.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.001542/0.3345, allocations: 0.9382 MB / 451.6 MB, free: 9.961 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003/0.3349, allocations: 213.3 kB / 451.8 MB, free: 9.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003957/0.3388, allocations: 2.6 MB / 454.4 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/0.3388, allocations: 16.11 kB / 454.4 MB, free: 7.094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.3389, allocations: 7.938 kB / 454.4 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.42e-05/0.3389, allocations: 8.062 kB / 454.4 MB, free: 7.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008285/0.3472, allocations: 5.866 MB / 460.3 MB, free: 1.098 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.784e-06/0.3472, allocations: 4 kB / 460.3 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001111/0.3483, allocations: 291.5 kB / 460.6 MB, free: 0.8086 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000902/0.3492, allocations: 407.5 kB / 461 MB, free: 408 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.19e-05/0.3493, allocations: 39.98 kB / 461 MB, free: 368 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00597/0.3553, allocations: 7.596 MB / 468.6 MB, free: 8.227 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.249e-06/0.3553, allocations: 7.938 kB / 468.6 MB, free: 8.219 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005175/0.3605, allocations: 3.84 MB / 472.4 MB, free: 4.285 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009449/0.3615, allocations: 0.4903 MB / 472.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002375/0.3617, allocations: 36 kB / 473 MB, free: 3.738 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001017/0.3627, allocations: 95.88 kB / 473.1 MB, free: 3.645 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.3629, allocations: 117 kB / 473.2 MB, free: 3.531 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.518e-05/0.363, allocations: 43.98 kB / 473.2 MB, free: 3.488 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001875/0.3649, allocations: 1.386 MB / 474.6 MB, free: 2.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3649, allocations: 0 / 474.6 MB, free: 2.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001771/0.3667, allocations: 0.5586 MB / 475.2 MB, free: 1.523 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.005391/0.3721, allocations: 4.504 MB / 479.7 MB, free: 12.91 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003442/0.3756, allocations: 2.636 MB / 482.3 MB, free: 10.22 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.483e-06/0.3756, allocations: 4 kB / 482.3 MB, free: 10.21 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001848/0.3774, allocations: 1.57 MB / 483.9 MB, free: 8.598 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003574/0.381, allocations: 0.5203 MB / 484.4 MB, free: 8.082 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03515/0.4162, allocations: 26.08 MB / 0.4985 GB, free: 11.88 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001808/0.418, allocations: 2.259 MB / 0.5007 GB, free: 9.586 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001571/0.4196, allocations: 0.526 MB / 0.5012 GB, free: 9.055 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/0.4209, allocations: 1.19 MB / 0.5024 GB, free: 7.863 MB / 430.1 MB Notification: Performance of SimCode: time 6.72e-07/0.421, allocations: 0 / 0.5024 GB, free: 7.863 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2123/0.6332, allocations: 51.29 MB / 0.5525 GB, free: 138.4 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001546/0.6334, allocations: 254.8 kB / 0.5527 GB, free: 138.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.551/3.184, allocations: 4 kB / 0.5527 GB, free: 138.2 MB / 446.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