Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001253/0.001253, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001482/0.001482, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.292/1.292, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 59.91 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2423/0.2438, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01673/0.2606, allocations: 15.8 MB / 424.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00983/0.2704, allocations: 5.343 MB / 429.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002445/0.2729, allocations: 99.62 kB / 430 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003082/0.276, allocations: 1.091 MB / 431.1 MB, free: 11.09 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003908/0.28, allocations: 1.227 MB / 432.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002348/0.2823, allocations: 0.9266 MB / 433.3 MB, free: 8.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004434/0.2868, allocations: 3.648 MB / 436.9 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004362/0.2912, allocations: 3.321 MB / 440.2 MB, free: 1.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002368/0.2936, allocations: 1.741 MB / 442 MB, free: 132 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002843/0.2964, allocations: 2.117 MB / 444.1 MB, free: 14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007616/0.2972, allocations: 480 kB / 444.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.2987, allocations: 0.7105 MB / 445.3 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009142/0.2996, allocations: 1.149 MB / 446.4 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.3016, allocations: 2.05 MB / 448.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006073/0.3077, allocations: 6.297 MB / 454.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3078, allocations: 0 / 454.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.3078, allocations: 0 / 454.8 MB, free: 3.297 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001211/0.3079, allocations: 0 / 454.8 MB, free: 3.297 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009648/0.3175, allocations: 4.265 MB / 459 MB, free: 14.96 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.3176, allocations: 12.03 kB / 459 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005468/0.3182, allocations: 451.3 kB / 459.5 MB, free: 14.49 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00275/0.3209, allocations: 0.625 MB / 460.1 MB, free: 13.86 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004216/0.3252, allocations: 2.288 MB / 462.4 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001662/0.3253, allocations: 234.7 kB / 462.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005122/0.3259, allocations: 315.9 kB / 462.9 MB, free: 10.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006308/0.3322, allocations: 4.047 MB / 467 MB, free: 6.871 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-05/0.3323, allocations: 11.84 kB / 467 MB, free: 6.859 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002708/0.3326, allocations: 128 kB / 467.1 MB, free: 6.734 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001297/0.3327, allocations: 150.2 kB / 467.3 MB, free: 6.586 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005471/0.3382, allocations: 3.39 MB / 470.6 MB, free: 3.188 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01871/0.3569, allocations: 13.34 MB / 484 MB, free: 5.363 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003999/0.3609, allocations: 4.267 MB / 488.3 MB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001518/0.3625, allocations: 1.02 MB / 489.3 MB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004586/0.3671, allocations: 2.843 MB / 492.1 MB, free: 12.56 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.731e-05/0.3671, allocations: 43.56 kB / 492.2 MB, free: 12.51 MB / 414.1 MB Notification: Performance of pre-optimization done (n=108): time 2.856e-06/0.3672, allocations: 0 / 492.2 MB, free: 12.51 MB / 414.1 MB Notification: Performance of matching and sorting (n=142): time 0.01096/0.3781, allocations: 6.007 MB / 498.2 MB, free: 6.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.314e-05/0.3782, allocations: 64.72 kB / 498.2 MB, free: 6.332 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003113/0.3813, allocations: 1.906 MB / 0.4884 GB, free: 4.383 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002474/0.3816, allocations: 45.7 kB / 0.4885 GB, free: 4.332 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001115/0.3827, allocations: 1.516 MB / 0.4899 GB, free: 2.797 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004356/0.3832, allocations: 492.9 kB / 0.4904 GB, free: 2.309 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005032/0.3837, allocations: 335.2 kB / 0.4907 GB, free: 1.973 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.3838, allocations: 301.1 kB / 0.491 GB, free: 1.676 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.385, allocations: 0.773 MB / 0.4918 GB, free: 0.9023 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001514/0.3865, allocations: 1.379 MB / 0.4931 GB, free: 15.26 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002713/0.3892, allocations: 2.32 MB / 0.4954 GB, free: 12.67 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.217e-06/0.3892, allocations: 4 kB / 0.4954 GB, free: 12.67 MB / 430.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003808/0.393, allocations: 2.478 MB / 0.4978 GB, free: 10.17 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.658e-05/0.3931, allocations: 12 kB / 0.4978 GB, free: 10.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.541e-05/0.3931, allocations: 20 kB / 0.4978 GB, free: 10.14 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000353/0.3935, allocations: 118.5 kB / 0.4979 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001735/0.3952, allocations: 491.4 kB / 0.4984 GB, free: 9.535 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00107/0.3963, allocations: 1.402 MB / 0.4998 GB, free: 7.988 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001555/0.3979, allocations: 115.8 kB / 0.4999 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.398, allocations: 80 kB / 0.5 GB, free: 7.797 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001554/0.3996, allocations: 0.9891 MB / 0.5009 GB, free: 6.797 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003924/0.4, allocations: 201.5 kB / 0.5011 GB, free: 6.598 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003348/0.4033, allocations: 1.966 MB / 0.503 GB, free: 4.613 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.278e-05/0.4034, allocations: 19.94 kB / 0.5031 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.4034, allocations: 0 / 0.5031 GB, free: 4.594 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.4034, allocations: 7.969 kB / 0.5031 GB, free: 4.586 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007598/0.411, allocations: 5.003 MB / 0.508 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.642e-06/0.411, allocations: 3.938 kB / 0.508 GB, free: 15.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001334/0.4124, allocations: 307.6 kB / 0.5083 GB, free: 15.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003097/0.4127, allocations: 94.64 kB / 0.5083 GB, free: 15.07 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.947e-05/0.4128, allocations: 31.98 kB / 0.5084 GB, free: 15.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009305/0.4137, allocations: 1.375 MB / 0.5097 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.4138, allocations: 7.938 kB / 0.5097 GB, free: 13.52 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004228/0.418, allocations: 3.086 MB / 0.5127 GB, free: 10.37 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001079/0.4191, allocations: 454.5 kB / 0.5132 GB, free: 9.906 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004137/0.4195, allocations: 28.06 kB / 0.5132 GB, free: 9.879 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/0.4207, allocations: 79.91 kB / 0.5133 GB, free: 9.801 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001754/0.4208, allocations: 97.06 kB / 0.5134 GB, free: 9.707 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.336e-05/0.4209, allocations: 39.98 kB / 0.5134 GB, free: 9.668 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002261/0.4232, allocations: 1.294 MB / 0.5147 GB, free: 8.352 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4232, allocations: 0 / 0.5147 GB, free: 8.352 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001813/0.425, allocations: 0.5391 MB / 0.5152 GB, free: 7.812 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 1 system {(1,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.004794/0.4298, allocations: 3.703 MB / 0.5188 GB, free: 4.043 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003281/0.4332, allocations: 2.223 MB / 0.521 GB, free: 1.766 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4332, allocations: 0 / 0.521 GB, free: 1.766 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001507/0.4347, allocations: 1.183 MB / 0.5221 GB, free: 0.5312 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002873/0.4376, allocations: 0.5123 MB / 0.5226 GB, free: 24 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2412/0.6788, allocations: 19.97 MB / 0.5421 GB, free: 124.8 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001894/0.6807, allocations: 2.265 MB / 0.5444 GB, free: 123.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001512/0.6822, allocations: 0.5136 MB / 0.5449 GB, free: 123.7 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001228/0.6835, allocations: 1.184 MB / 0.546 GB, free: 122.8 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/0.6835, allocations: 0 / 0.546 GB, free: 122.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07829/0.7618, allocations: 50.27 MB / 0.5951 GB, free: 77.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.33, allocations: 8.641 kB / 0.5951 GB, free: 77.74 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches