Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001227/0.001227, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001242/0.001242, allocations: 189.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.327/1.327, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 52.14 kB / 280.3 MB, free: 3.375 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07414/0.07537, allocations: 46.63 MB / 326.9 MB, free: 4.676 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01198/0.08737, allocations: 10.8 MB / 337.7 MB, free: 9.824 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00692/0.09433, allocations: 3.623 MB / 341.3 MB, free: 6.184 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001865/0.09623, allocations: 51.75 kB / 341.4 MB, free: 6.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002346/0.09864, allocations: 0.7225 MB / 342.1 MB, free: 5.406 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002982/0.1016, allocations: 0.7732 MB / 342.8 MB, free: 4.629 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001345/0.103, allocations: 407.6 kB / 343.2 MB, free: 4.23 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003739/0.1068, allocations: 2.939 MB / 346.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003684/0.1105, allocations: 2.683 MB / 348.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002204/0.1127, allocations: 1.374 MB / 350.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002612/0.1153, allocations: 1.779 MB / 352 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009274/0.1163, allocations: 376 kB / 352.4 MB, free: 11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00148/0.1177, allocations: 479.8 kB / 352.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000946/0.1187, allocations: 1.071 MB / 353.9 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.1205, allocations: 1.676 MB / 355.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00394/0.1244, allocations: 4.817 MB / 360.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1244, allocations: 0 / 360.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1244, allocations: 0 / 360.4 MB, free: 2.945 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.474e-05/0.1245, allocations: 0 / 360.4 MB, free: 2.945 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.005845/0.1304, allocations: 3.383 MB / 363.8 MB, free: 15.5 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.1304, allocations: 11.89 kB / 363.8 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004165/0.1309, allocations: 370.9 kB / 364.2 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007229/0.1316, allocations: 337.1 kB / 364.5 MB, free: 14.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00236/0.134, allocations: 1.69 MB / 366.2 MB, free: 13.04 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001481/0.1341, allocations: 201.1 kB / 366.4 MB, free: 12.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003165/0.1344, allocations: 255.8 kB / 366.6 MB, free: 12.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005288/0.1397, allocations: 3.279 MB / 369.9 MB, free: 9.227 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-05/0.1398, allocations: 4 kB / 369.9 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002159/0.1401, allocations: 104 kB / 370 MB, free: 9.121 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001194/0.1402, allocations: 128.9 kB / 370.2 MB, free: 8.992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004166/0.1444, allocations: 2.744 MB / 372.9 MB, free: 6.234 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1469/0.2913, allocations: 10.52 MB / 383.4 MB, free: 46.08 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001661/0.293, allocations: 1.356 MB / 384.8 MB, free: 45.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001134/0.2941, allocations: 0.7782 MB / 385.5 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002599/0.2944, allocations: 204.6 kB / 385.7 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.343e-05/0.2944, allocations: 48.03 kB / 385.8 MB, free: 45.49 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.905e-06/0.2944, allocations: 0 / 385.8 MB, free: 45.49 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01406/0.3085, allocations: 7.041 MB / 392.8 MB, free: 42.97 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.102e-05/0.3086, allocations: 64.19 kB / 392.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0022/0.3108, allocations: 1.783 MB / 394.7 MB, free: 42.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.3109, allocations: 41.83 kB / 394.7 MB, free: 42.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000586/0.3115, allocations: 1.282 MB / 396 MB, free: 41.22 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002521/0.3117, allocations: 428.1 kB / 396.4 MB, free: 40.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004082/0.3121, allocations: 296.4 kB / 396.7 MB, free: 40.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.322e-05/0.3122, allocations: 302.5 kB / 397 MB, free: 40.45 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009062/0.3131, allocations: 0.7742 MB / 397.8 MB, free: 40.14 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001045/0.3142, allocations: 1.297 MB / 399.1 MB, free: 39.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002103/0.3163, allocations: 2.216 MB / 401.3 MB, free: 37.51 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.346e-06/0.3163, allocations: 8.844 kB / 401.3 MB, free: 37.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003309/0.3196, allocations: 2.472 MB / 403.8 MB, free: 36.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.988e-05/0.3197, allocations: 11 kB / 403.8 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.3197, allocations: 17.38 kB / 403.8 MB, free: 36.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005594/0.3203, allocations: 248.2 kB / 404 MB, free: 36.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001269/0.3215, allocations: 414.4 kB / 404.4 MB, free: 36.01 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002096/0.3236, allocations: 3.241 MB / 407.7 MB, free: 32.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001439/0.3251, allocations: 127.4 kB / 407.8 MB, free: 32.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.3252, allocations: 78.31 kB / 407.9 MB, free: 32.8 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001252/0.3265, allocations: 0.8171 MB / 408.7 MB, free: 32.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004417/0.3269, allocations: 189.7 kB / 408.9 MB, free: 32.07 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002851/0.3298, allocations: 2.035 MB / 410.9 MB, free: 30.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-06/0.3298, allocations: 12 kB / 410.9 MB, free: 30 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.3298, allocations: 4 kB / 410.9 MB, free: 29.99 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.16e-05/0.3298, allocations: 3.984 kB / 410.9 MB, free: 29.99 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006076/0.3359, allocations: 4.765 MB / 415.7 MB, free: 25.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/0.3359, allocations: 0 / 415.7 MB, free: 25.16 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009536/0.3369, allocations: 267.9 kB / 416 MB, free: 24.9 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004405/0.3373, allocations: 203.3 kB / 416.2 MB, free: 24.69 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.805e-05/0.3374, allocations: 28 kB / 416.2 MB, free: 24.66 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001703/0.3391, allocations: 3.208 MB / 419.4 MB, free: 21.18 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.3391, allocations: 4.031 kB / 419.4 MB, free: 21.18 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003344/0.3425, allocations: 3.125 MB / 422.5 MB, free: 17.99 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007139/0.3432, allocations: 430.6 kB / 423 MB, free: 17.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002133/0.3434, allocations: 24 kB / 423 MB, free: 17.53 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008488/0.3443, allocations: 95.94 kB / 423.1 MB, free: 17.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001587/0.3445, allocations: 84.77 kB / 423.2 MB, free: 17.36 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.591e-05/0.3445, allocations: 35.98 kB / 423.2 MB, free: 17.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001381/0.3459, allocations: 1.22 MB / 424.4 MB, free: 16.11 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3459, allocations: 0 / 424.4 MB, free: 16.11 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001337/0.3473, allocations: 491 kB / 424.9 MB, free: 15.63 MB / 318.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 (120): * Single equations (assignments): 116 * 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.003621/0.3509, allocations: 3.766 MB / 428.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004094/0.355, allocations: 2.984 MB / 431.6 MB, free: 8.773 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.355, allocations: 0 / 431.6 MB, free: 8.773 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.3564, allocations: 1.333 MB / 433 MB, free: 7.371 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002229/0.3586, allocations: 491.7 kB / 433.5 MB, free: 6.906 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03182/0.3905, allocations: 21.72 MB / 455.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/0.3921, allocations: 2.006 MB / 457.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001502/0.3937, allocations: 0.4921 MB / 457.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001274/0.3949, allocations: 1.011 MB / 458.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.395, allocations: 4 kB / 458.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07434/0.4693, allocations: 44.89 MB / 0.4918 GB, free: 14.99 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002068/0.4695, allocations: 264.9 kB / 0.492 GB, free: 14.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.144/3.613, allocations: 4.062 kB / 0.492 GB, free: 14.63 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches