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.0009705/0.0009705, allocations: 91.86 kB / 16.65 MB, free: 6.59 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.001147/0.001147, allocations: 182.8 kB / 17.56 MB, free: 6.203 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.317/1.317, allocations: 223.3 MB / 241.6 MB, free: 124 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002862/0.0002864, allocations: 8.188 kB / 301.5 MB, free: 6.016 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09102/0.09133, allocations: 50.42 MB / 352 MB, free: 3.586 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01107/0.1024, allocations: 10.26 MB / 362.2 MB, free: 9.277 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007113/0.1096, allocations: 3.54 MB / 365.8 MB, free: 5.727 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002165/0.1118, allocations: 63.69 kB / 365.8 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.1143, allocations: 0.7109 MB / 366.5 MB, free: 4.949 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00324/0.1176, allocations: 0.7732 MB / 367.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001354/0.1189, allocations: 399.5 kB / 367.7 MB, free: 3.781 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004158/0.1231, allocations: 3.261 MB / 371 MB, free: 0.5156 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1992/0.3224, allocations: 2.267 MB / 373.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001872/0.3243, allocations: 1.034 MB / 374.3 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001928/0.3262, allocations: 1.45 MB / 375.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000366/0.3266, allocations: 151.8 kB / 375.9 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008486/0.3275, allocations: 265.5 kB / 376.1 MB, free: 9.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001019/0.3285, allocations: 0.8059 MB / 376.9 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001771/0.3303, allocations: 1.396 MB / 378.3 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005919/0.3362, allocations: 4.556 MB / 382.9 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.3362, allocations: 0 / 382.9 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3363, allocations: 4 kB / 382.9 MB, free: 8.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001216/0.3364, allocations: 0 / 382.9 MB, free: 8.742 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.006661/0.343, allocations: 2.859 MB / 385.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.3431, allocations: 8.688 kB / 385.7 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006672/0.3438, allocations: 366.5 kB / 386.1 MB, free: 6.969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.3448, allocations: 338.7 kB / 386.4 MB, free: 6.801 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003229/0.3481, allocations: 1.771 MB / 388.2 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002221/0.3483, allocations: 195 kB / 388.4 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000429/0.3487, allocations: 254.7 kB / 388.6 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00564/0.3544, allocations: 3.288 MB / 391.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.674e-05/0.3545, allocations: 2.438 kB / 391.9 MB, free: 4.344 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002331/0.3547, allocations: 108.5 kB / 392 MB, free: 4.262 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001373/0.3549, allocations: 120.6 kB / 392.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005348/0.3602, allocations: 2.759 MB / 394.9 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01672/0.377, allocations: 10.53 MB / 405.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001843/0.3788, allocations: 1.363 MB / 406.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.3801, allocations: 0.7904 MB / 407.6 MB, free: 8.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002688/0.3804, allocations: 201.8 kB / 407.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.3804, allocations: 47.56 kB / 407.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.334e-06/0.3805, allocations: 0 / 407.8 MB, free: 8.016 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01603/0.3965, allocations: 6.95 MB / 414.8 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/0.3966, allocations: 64.41 kB / 414.8 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004553/0.4012, allocations: 1.79 MB / 416.6 MB, free: 15.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.4013, allocations: 45.7 kB / 416.7 MB, free: 15.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001213/0.4025, allocations: 1.275 MB / 418 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004813/0.403, allocations: 429.9 kB / 418.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002543/0.4033, allocations: 125.6 kB / 418.5 MB, free: 13.23 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4034, allocations: 309.1 kB / 418.8 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00136/0.4048, allocations: 0.7775 MB / 419.6 MB, free: 12.14 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.4065, allocations: 1.295 MB / 420.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002947/0.4094, allocations: 2.217 MB / 423.1 MB, free: 8.246 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.549e-05/0.4095, allocations: 4 kB / 423.1 MB, free: 8.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004603/0.4141, allocations: 2.484 MB / 425.6 MB, free: 5.836 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.4141, allocations: 12 kB / 425.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-05/0.4142, allocations: 16 kB / 425.6 MB, free: 5.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006592/0.4148, allocations: 238.2 kB / 425.8 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.4163, allocations: 415.6 kB / 426.2 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002926/0.4193, allocations: 3.002 MB / 429.2 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00199/0.4213, allocations: 127.8 kB / 429.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.4215, allocations: 68 kB / 429.4 MB, free: 1.75 MB / 334.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.002235/0.4237, allocations: 0.8228 MB / 430.3 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007039/0.4244, allocations: 189.6 kB / 430.4 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004255/0.4287, allocations: 2.044 MB / 432.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.4287, allocations: 12 kB / 432.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.223e-05/0.4287, allocations: 4 kB / 432.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.59e-05/0.4288, allocations: 12.11 kB / 432.5 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01044/0.4392, allocations: 4.76 MB / 437.3 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.4393, allocations: 7.984 kB / 437.3 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4403, allocations: 266.3 kB / 437.5 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000529/0.4409, allocations: 203.3 kB / 437.7 MB, free: 9.402 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.005e-05/0.441, allocations: 24 kB / 437.8 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.4433, allocations: 2.974 MB / 440.7 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.4433, allocations: 6.906 kB / 440.7 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004727/0.4481, allocations: 3.14 MB / 443.9 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001281/0.4494, allocations: 430.6 kB / 444.3 MB, free: 2.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006827/0.4501, allocations: 27.94 kB / 444.3 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.4515, allocations: 95.94 kB / 444.4 MB, free: 2.398 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.4517, allocations: 84.45 kB / 444.5 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.211e-05/0.4518, allocations: 39.98 kB / 444.6 MB, free: 2.281 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.003096/0.4549, allocations: 1.22 MB / 445.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4549, allocations: 0 / 445.8 MB, free: 1.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002407/0.4574, allocations: 492 kB / 446.3 MB, free: 0.5898 MB / 350.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.005107/0.4625, allocations: 3.785 MB / 450 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003703/0.4662, allocations: 2.355 MB / 452.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.4662, allocations: 0 / 452.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001912/0.4681, allocations: 1.349 MB / 453.7 MB, free: 9.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003614/0.4718, allocations: 462.2 kB / 454.2 MB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/0.5093, allocations: 21.81 MB / 476 MB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/0.5114, allocations: 2.002 MB / 478 MB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001487/0.5129, allocations: 0.496 MB / 478.5 MB, free: 14.64 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/0.5142, allocations: 1.015 MB / 479.5 MB, free: 13.63 MB / 398.1 MB Notification: Performance of SimCode: time 5.51e-07/0.5142, allocations: 0 / 479.5 MB, free: 13.63 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4551/0.9694, allocations: 43.38 MB / 0.5106 GB, free: 2.785 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000274/0.9697, allocations: 253.5 kB / 0.5109 GB, free: 2.535 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.087/4.057, allocations: 0 / 0.5109 GB, free: 2.535 MB / 430.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