Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",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.001567/0.001567, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001542/0.001542, allocations: 200 kB / 18.01 MB, free: 5.047 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.383/1.383, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 59.91 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2263, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01255/0.2389, allocations: 10.9 MB / 411.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006613/0.2455, allocations: 3.618 MB / 414.8 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001386/0.247, allocations: 63.75 kB / 414.8 MB, free: 10.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002077/0.249, allocations: 0.8218 MB / 415.7 MB, free: 9.348 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002818/0.2519, allocations: 0.8619 MB / 416.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.2531, allocations: 451.3 kB / 417 MB, free: 8.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003515/0.2566, allocations: 2.939 MB / 419.9 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003133/0.2598, allocations: 2.739 MB / 422.6 MB, free: 2.285 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001819/0.2616, allocations: 1.374 MB / 424 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002494/0.2641, allocations: 1.748 MB / 425.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007863/0.2649, allocations: 372 kB / 426.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2661, allocations: 479.8 kB / 426.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001132/0.2672, allocations: 1.071 MB / 427.7 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002034/0.2692, allocations: 1.672 MB / 429.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005557/0.2748, allocations: 4.893 MB / 434.2 MB, free: 6.656 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2748, allocations: 4 kB / 434.2 MB, free: 6.652 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.416e-06/0.2749, allocations: 4 kB / 434.2 MB, free: 6.648 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001006/0.275, allocations: 0 / 434.2 MB, free: 6.648 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.007329/0.2823, allocations: 3.477 MB / 437.7 MB, free: 3.102 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.2823, allocations: 12.03 kB / 437.7 MB, free: 3.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005585/0.2829, allocations: 367 kB / 438.1 MB, free: 2.723 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00086/0.2838, allocations: 346.9 kB / 438.4 MB, free: 2.383 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00333/0.2871, allocations: 1.832 MB / 440.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001614/0.2873, allocations: 193.1 kB / 440.4 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004369/0.2878, allocations: 256 kB / 440.7 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005794/0.2936, allocations: 3.283 MB / 444 MB, free: 12.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.434e-05/0.2936, allocations: 7.938 kB / 444 MB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.2939, allocations: 104 kB / 444.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.294, allocations: 124.9 kB / 444.2 MB, free: 12.46 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004587/0.2986, allocations: 2.748 MB / 447 MB, free: 9.695 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01551/0.3141, allocations: 10.41 MB / 457.4 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.316, allocations: 1.362 MB / 458.7 MB, free: 13.49 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001211/0.3173, allocations: 0.757 MB / 459.5 MB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002917/0.3176, allocations: 208.2 kB / 459.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.289e-05/0.3176, allocations: 47.56 kB / 459.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 4.338e-06/0.3176, allocations: 0 / 459.7 MB, free: 12.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01485/0.3325, allocations: 6.941 MB / 466.7 MB, free: 5.387 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.3326, allocations: 64.41 kB / 466.7 MB, free: 5.312 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002531/0.3351, allocations: 1.786 MB / 468.5 MB, free: 3.527 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000115/0.3352, allocations: 53.7 kB / 468.6 MB, free: 3.469 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009601/0.3362, allocations: 1.306 MB / 469.9 MB, free: 2.148 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003917/0.3366, allocations: 448.2 kB / 470.3 MB, free: 1.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004653/0.3371, allocations: 299.4 kB / 470.6 MB, free: 1.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3372, allocations: 309 kB / 470.9 MB, free: 1.102 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.3384, allocations: 0.773 MB / 471.7 MB, free: 336 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001578/0.34, allocations: 1.304 MB / 473 MB, free: 14.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002953/0.3429, allocations: 2.202 MB / 475.2 MB, free: 12.37 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.343, allocations: 4 kB / 475.2 MB, free: 12.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004026/0.347, allocations: 2.495 MB / 477.7 MB, free: 9.852 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.67e-05/0.347, allocations: 12 kB / 477.7 MB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.3471, allocations: 16 kB / 477.7 MB, free: 9.824 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006125/0.3477, allocations: 239.2 kB / 478 MB, free: 9.578 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001419/0.3491, allocations: 423.4 kB / 478.4 MB, free: 9.164 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002873/0.352, allocations: 3.234 MB / 481.6 MB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001367/0.3534, allocations: 127.8 kB / 481.7 MB, free: 5.516 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001271/0.3535, allocations: 75.92 kB / 481.8 MB, free: 5.441 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001281/0.3548, allocations: 0.8174 MB / 482.6 MB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003307/0.3551, allocations: 194.7 kB / 482.8 MB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003332/0.3585, allocations: 2.039 MB / 484.8 MB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.3585, allocations: 16 kB / 484.9 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.3585, allocations: 0 / 484.9 MB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3585, allocations: 7.969 kB / 484.9 MB, free: 2.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007457/0.366, allocations: 4.745 MB / 489.6 MB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.366, allocations: 4.281 kB / 489.6 MB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/0.3671, allocations: 267.6 kB / 489.9 MB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005252/0.3676, allocations: 203.2 kB / 490.1 MB, free: 13.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.838e-05/0.3677, allocations: 24 kB / 490.1 MB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002755/0.3705, allocations: 3.23 MB / 493.3 MB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.3705, allocations: 4 kB / 493.3 MB, free: 9.477 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004617/0.3751, allocations: 3.136 MB / 496.5 MB, free: 6.285 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008013/0.3759, allocations: 435.7 kB / 496.9 MB, free: 5.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002549/0.3762, allocations: 32 kB / 496.9 MB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008951/0.3771, allocations: 91.88 kB / 497 MB, free: 5.719 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001749/0.3773, allocations: 76.83 kB / 497.1 MB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.709e-05/0.3774, allocations: 35.98 kB / 497.1 MB, free: 5.609 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001799/0.3792, allocations: 1.22 MB / 498.4 MB, free: 4.398 MB / 414.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3792, allocations: 4 kB / 498.4 MB, free: 4.395 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001484/0.3807, allocations: 491.9 kB / 498.8 MB, free: 3.914 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {(2,1,100.0%), (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.005077/0.3858, allocations: 3.781 MB / 0.4908 GB, free: 68 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003631/0.3894, allocations: 2.35 MB / 0.4931 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.3894, allocations: 3.938 kB / 0.4931 GB, free: 13.64 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001863/0.3913, allocations: 1.335 MB / 0.4944 GB, free: 12.23 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002289/0.3936, allocations: 499 kB / 0.4949 GB, free: 11.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02814/0.4218, allocations: 18.79 MB / 0.5133 GB, free: 8.219 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001823/0.4236, allocations: 2.01 MB / 0.5152 GB, free: 6.172 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001371/0.425, allocations: 0.4921 MB / 0.5157 GB, free: 5.676 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001357/0.4264, allocations: 1.011 MB / 0.5167 GB, free: 4.664 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4264, allocations: 3.938 kB / 0.5167 GB, free: 4.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.448/1.874, allocations: 45.96 MB / 0.5616 GB, free: 119.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.48/18.35, allocations: 6.094 kB / 0.5616 GB, free: 119.2 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches