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.001163/0.001163, allocations: 104.6 kB / 17.16 MB, free: 6.316 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.001213/0.001213, allocations: 190 kB / 18.07 MB, free: 5.414 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.343/1.343, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001244/0.001244, allocations: 55.91 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0962/0.09745, allocations: 46.63 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01163/0.1091, allocations: 10.79 MB / 337.5 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007035/0.1162, allocations: 3.639 MB / 341.1 MB, free: 6.289 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002037/0.1182, allocations: 59.69 kB / 341.2 MB, free: 6.23 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002192/0.1205, allocations: 0.707 MB / 341.9 MB, free: 5.52 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002866/0.1234, allocations: 0.7771 MB / 342.7 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001119/0.1245, allocations: 411.6 kB / 343.1 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004085/0.1286, allocations: 3.258 MB / 346.3 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003003/0.1316, allocations: 2.267 MB / 348.6 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001993/0.1336, allocations: 1.199 MB / 349.8 MB, free: 13.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002265/0.1359, allocations: 1.689 MB / 351.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004551/0.1364, allocations: 232 kB / 351.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008955/0.1373, allocations: 343.8 kB / 352.1 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008598/0.1381, allocations: 0.9308 MB / 353 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001617/0.1398, allocations: 1.516 MB / 354.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00432/0.1441, allocations: 4.712 MB / 359.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1441, allocations: 0 / 359.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1441, allocations: 0 / 359.2 MB, free: 4.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.251e-05/0.1442, allocations: 4 kB / 359.2 MB, free: 4.09 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.006287/0.1505, allocations: 3.383 MB / 362.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/0.1506, allocations: 8.031 kB / 362.6 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004659/0.151, allocations: 367 kB / 363 MB, free: 272 kB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007784/0.1518, allocations: 337.1 kB / 363.3 MB, free: 15.93 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.1544, allocations: 1.69 MB / 365 MB, free: 14.19 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/0.1546, allocations: 205.1 kB / 365.2 MB, free: 13.98 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003452/0.1549, allocations: 251.9 kB / 365.4 MB, free: 13.74 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004985/0.1599, allocations: 3.279 MB / 368.7 MB, free: 10.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.512e-05/0.16, allocations: 7.938 kB / 368.7 MB, free: 10.37 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002225/0.1602, allocations: 104 kB / 368.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001323/0.1604, allocations: 124.9 kB / 368.9 MB, free: 10.14 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004666/0.165, allocations: 2.748 MB / 371.7 MB, free: 7.383 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1673/0.3324, allocations: 10.52 MB / 382.2 MB, free: 46.64 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.3341, allocations: 1.367 MB / 383.6 MB, free: 46.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00118/0.3353, allocations: 0.7727 MB / 384.3 MB, free: 46.3 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002426/0.3355, allocations: 202.3 kB / 384.5 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.3356, allocations: 44.28 kB / 384.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.845e-06/0.3356, allocations: 3.281 kB / 384.6 MB, free: 46.07 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.0155/0.3511, allocations: 7.025 MB / 391.6 MB, free: 43.69 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.3512, allocations: 71.58 kB / 391.7 MB, free: 43.62 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002818/0.354, allocations: 1.787 MB / 393.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.52e-05/0.3541, allocations: 46.14 kB / 393.5 MB, free: 42.91 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008999/0.355, allocations: 1.272 MB / 394.8 MB, free: 41.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003593/0.3554, allocations: 429.7 kB / 395.2 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005202/0.3559, allocations: 299.2 kB / 395.5 MB, free: 41.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.122e-05/0.356, allocations: 303.9 kB / 395.8 MB, free: 41.17 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001108/0.3571, allocations: 0.7731 MB / 396.6 MB, free: 40.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001174/0.3583, allocations: 1.295 MB / 397.9 MB, free: 39.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002215/0.3605, allocations: 2.22 MB / 400.1 MB, free: 38.41 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.3605, allocations: 5.031 kB / 400.1 MB, free: 38.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003318/0.3638, allocations: 2.465 MB / 402.6 MB, free: 37.16 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.526e-05/0.3639, allocations: 11.81 kB / 402.6 MB, free: 37.16 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.03e-05/0.3639, allocations: 19.78 kB / 402.6 MB, free: 37.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005494/0.3645, allocations: 245.9 kB / 402.8 MB, free: 37.03 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001287/0.3658, allocations: 423.4 kB / 403.2 MB, free: 36.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001909/0.3677, allocations: 2.993 MB / 406.2 MB, free: 34.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001488/0.3692, allocations: 134.1 kB / 406.4 MB, free: 33.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001076/0.3693, allocations: 70.02 kB / 406.4 MB, free: 33.94 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.001339/0.3706, allocations: 0.8279 MB / 407.3 MB, free: 33.38 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000409/0.3711, allocations: 185.3 kB / 407.4 MB, free: 33.29 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002811/0.3739, allocations: 2.038 MB / 409.5 MB, free: 31.43 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/0.3739, allocations: 12 kB / 409.5 MB, free: 31.42 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/0.3739, allocations: 0 / 409.5 MB, free: 31.42 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.176e-05/0.3739, allocations: 7.984 kB / 409.5 MB, free: 31.41 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006303/0.3802, allocations: 4.758 MB / 414.3 MB, free: 26.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3803, allocations: 4 kB / 414.3 MB, free: 26.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009452/0.3812, allocations: 264.2 kB / 414.5 MB, free: 26.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004635/0.3817, allocations: 208.6 kB / 414.7 MB, free: 26.11 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.98e-05/0.3818, allocations: 27.94 kB / 414.8 MB, free: 26.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001712/0.3835, allocations: 2.974 MB / 417.7 MB, free: 22.86 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.3835, allocations: 3.938 kB / 417.7 MB, free: 22.85 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003565/0.3871, allocations: 3.125 MB / 420.9 MB, free: 19.67 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008332/0.3879, allocations: 431.5 kB / 421.3 MB, free: 19.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002223/0.3882, allocations: 20 kB / 421.3 MB, free: 19.21 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008564/0.389, allocations: 91.88 kB / 421.4 MB, free: 19.12 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.3892, allocations: 88.89 kB / 421.5 MB, free: 19.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.762e-05/0.3893, allocations: 35.98 kB / 421.5 MB, free: 19 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00153/0.3908, allocations: 1.216 MB / 422.7 MB, free: 17.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.042e-06/0.3908, allocations: 0 / 422.7 MB, free: 17.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001431/0.3923, allocations: 491.9 kB / 423.2 MB, free: 17.31 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.003662/0.3959, allocations: 3.768 MB / 427 MB, free: 13.48 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003019/0.399, allocations: 2.343 MB / 429.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.399, allocations: 0 / 429.3 MB, free: 11.07 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001398/0.4004, allocations: 1.332 MB / 430.6 MB, free: 9.668 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002397/0.4028, allocations: 463.9 kB / 431.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04014/0.4429, allocations: 21.71 MB / 452.8 MB, free: 1.879 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/0.4456, allocations: 2.002 MB / 454.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001808/0.4474, allocations: 0.496 MB / 455.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001597/0.449, allocations: 1.011 MB / 456.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.449, allocations: 0 / 456.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08075/0.5298, allocations: 43.89 MB / 0.4885 GB, free: 2.336 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002423/0.5301, allocations: 272.7 kB / 0.4887 GB, free: 1.973 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.736/3.266, allocations: 0 / 0.4887 GB, free: 1.973 MB / 382.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