Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001413/0.001413, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001736/0.001736, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2283/0.2295, allocations: 50.55 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01212/0.2416, allocations: 10.95 MB / 419.7 MB, free: 6.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006877/0.2485, allocations: 3.669 MB / 423.4 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001525/0.2501, allocations: 67.69 kB / 423.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002109/0.2522, allocations: 0.8267 MB / 424.3 MB, free: 1.965 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002662/0.2549, allocations: 0.858 MB / 425.1 MB, free: 1.102 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001071/0.256, allocations: 463.3 kB / 425.6 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003226/0.2593, allocations: 2.942 MB / 428.5 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002862/0.2621, allocations: 2.739 MB / 431.3 MB, free: 10.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001797/0.264, allocations: 1.386 MB / 432.7 MB, free: 9.496 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002274/0.2662, allocations: 1.763 MB / 434.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005401/0.2668, allocations: 372 kB / 434.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00084/0.2677, allocations: 479.8 kB / 435.2 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000931/0.2686, allocations: 1.075 MB / 436.3 MB, free: 5.816 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001715/0.2703, allocations: 1.672 MB / 438 MB, free: 4.137 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004627/0.275, allocations: 4.895 MB / 442.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.275, allocations: 0 / 442.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.275, allocations: 0 / 442.9 MB, free: 15.22 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.18e-05/0.2751, allocations: 0 / 442.9 MB, free: 15.22 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006321/0.2814, allocations: 3.406 MB / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.2815, allocations: 8.031 kB / 446.3 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004324/0.2819, allocations: 363 kB / 446.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008551/0.2828, allocations: 349 kB / 447 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003244/0.286, allocations: 1.826 MB / 448.8 MB, free: 9.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.2862, allocations: 193.1 kB / 449 MB, free: 8.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.2865, allocations: 251.9 kB / 449.3 MB, free: 8.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004999/0.2915, allocations: 3.283 MB / 452.5 MB, free: 5.355 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.205e-05/0.2916, allocations: 11.89 kB / 452.6 MB, free: 5.344 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002194/0.2918, allocations: 104 kB / 452.7 MB, free: 5.242 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001129/0.292, allocations: 120.9 kB / 452.8 MB, free: 5.121 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004278/0.2962, allocations: 2.756 MB / 455.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01507/0.3113, allocations: 10.37 MB / 465.9 MB, free: 7.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.3131, allocations: 1.369 MB / 467.3 MB, free: 6.184 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001131/0.3143, allocations: 0.7617 MB / 468 MB, free: 5.418 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/0.3145, allocations: 204.2 kB / 468.2 MB, free: 5.184 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.3146, allocations: 43.56 kB / 468.3 MB, free: 5.133 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.785e-06/0.3146, allocations: 4 kB / 468.3 MB, free: 5.129 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01432/0.3289, allocations: 6.898 MB / 475.2 MB, free: 14.12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.329, allocations: 72.34 kB / 475.2 MB, free: 14.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002698/0.3317, allocations: 1.794 MB / 477 MB, free: 12.24 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.162e-05/0.3318, allocations: 45.7 kB / 477.1 MB, free: 12.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008543/0.3327, allocations: 1.271 MB / 478.4 MB, free: 10.9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003475/0.333, allocations: 425.9 kB / 478.8 MB, free: 10.48 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004591/0.3335, allocations: 299.2 kB / 479.1 MB, free: 10.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.626e-05/0.3336, allocations: 309.1 kB / 479.4 MB, free: 9.875 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.3347, allocations: 0.773 MB / 480.1 MB, free: 9.102 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00148/0.3362, allocations: 1.292 MB / 481.4 MB, free: 7.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002756/0.339, allocations: 2.206 MB / 483.6 MB, free: 5.148 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.536e-05/0.339, allocations: 8 kB / 483.6 MB, free: 5.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00391/0.3429, allocations: 2.466 MB / 486.1 MB, free: 2.652 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.604e-05/0.343, allocations: 15.94 kB / 486.1 MB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.722e-05/0.343, allocations: 20 kB / 486.1 MB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006086/0.3436, allocations: 251.5 kB / 486.4 MB, free: 2.359 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.3451, allocations: 419.3 kB / 486.8 MB, free: 1.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.3477, allocations: 3.234 MB / 490 MB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.3491, allocations: 131.8 kB / 490.2 MB, free: 14.29 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/0.3493, allocations: 79.98 kB / 490.2 MB, free: 14.21 MB / 414.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.00133/0.3506, allocations: 0.8134 MB / 491.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000428/0.3511, allocations: 185.8 kB / 491.2 MB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003294/0.3544, allocations: 2.046 MB / 493.3 MB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.88e-05/0.3544, allocations: 12 kB / 493.3 MB, free: 11.13 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.856e-06/0.3544, allocations: 4 kB / 493.3 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.3544, allocations: 7.969 kB / 493.3 MB, free: 11.12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008395/0.3628, allocations: 4.745 MB / 498 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.3629, allocations: 0 / 498 MB, free: 6.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001077/0.364, allocations: 267.6 kB / 498.3 MB, free: 6.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005301/0.3645, allocations: 199.3 kB / 498.5 MB, free: 5.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.912e-05/0.3646, allocations: 24 kB / 498.5 MB, free: 5.777 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.3672, allocations: 3.219 MB / 0.49 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.3672, allocations: 0 / 0.49 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004407/0.3716, allocations: 3.135 MB / 0.493 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.3727, allocations: 426.7 kB / 0.4935 GB, free: 14.65 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003413/0.373, allocations: 27.94 kB / 0.4935 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001027/0.3741, allocations: 95.86 kB / 0.4936 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.3742, allocations: 76.83 kB / 0.4936 GB, free: 14.45 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.651e-05/0.3743, allocations: 32.06 kB / 0.4937 GB, free: 14.42 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.00198/0.3763, allocations: 1.232 MB / 0.4949 GB, free: 13.2 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.3763, allocations: 0 / 0.4949 GB, free: 13.2 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001575/0.3779, allocations: 488 kB / 0.4953 GB, free: 12.72 MB / 430.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.005009/0.3829, allocations: 3.775 MB / 0.499 GB, free: 8.879 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003468/0.3864, allocations: 2.346 MB / 0.5013 GB, free: 6.465 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.3864, allocations: 4.062 kB / 0.5013 GB, free: 6.461 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001779/0.3882, allocations: 1.347 MB / 0.5026 GB, free: 5.043 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002389/0.3906, allocations: 494.2 kB / 0.5031 GB, free: 4.574 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02771/0.4183, allocations: 18.7 MB / 0.5214 GB, free: 1.137 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002061/0.4204, allocations: 2.022 MB / 0.5234 GB, free: 15.08 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001439/0.4219, allocations: 0.4921 MB / 0.5238 GB, free: 14.58 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/0.4233, allocations: 1.015 MB / 0.5248 GB, free: 13.57 MB / 462.1 MB Notification: Performance of SimCode: time 9.01e-07/0.4233, allocations: 0 / 0.5248 GB, free: 13.57 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2718/0.6951, allocations: 46.55 MB / 0.5703 GB, free: 103.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.55, allocations: 18.12 kB / 0.5703 GB, free: 103.4 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches