Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource",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.001045/0.001045, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001131/0.001131, allocations: 183 kB / 18.66 MB, free: 4.418 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.299/1.299, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001869/0.001869, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09489/0.09677, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.1948/0.2916, allocations: 11.6 MB / 386.3 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009685/0.3013, allocations: 3.961 MB / 390.2 MB, free: 4.453 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002958/0.3043, allocations: 64.19 kB / 390.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002703/0.3071, allocations: 0.8633 MB / 391.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004384/0.3115, allocations: 0.9604 MB / 392.1 MB, free: 3.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001766/0.3133, allocations: 0.5147 MB / 392.6 MB, free: 3.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004817/0.3181, allocations: 3.293 MB / 395.9 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003656/0.3218, allocations: 2.983 MB / 398.9 MB, free: 116 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003204/0.325, allocations: 1.537 MB / 400.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004122/0.3292, allocations: 1.973 MB / 402.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001218/0.3304, allocations: 426.9 kB / 402.8 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.3324, allocations: 0.5168 MB / 403.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001682/0.3341, allocations: 1.228 MB / 404.6 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003418/0.3376, allocations: 1.876 MB / 406.4 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00684/0.3444, allocations: 5.516 MB / 412 MB, free: 8.551 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.017e-06/0.3445, allocations: 4 kB / 412 MB, free: 8.547 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.3445, allocations: 1.156 kB / 412 MB, free: 8.547 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001385/0.3446, allocations: 4 kB / 412 MB, free: 8.543 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008833/0.3535, allocations: 3.804 MB / 415.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.3535, allocations: 13.98 kB / 415.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006091/0.3541, allocations: 413.8 kB / 416.2 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00114/0.3553, allocations: 393.5 kB / 416.6 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004169/0.3595, allocations: 1.944 MB / 418.5 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001675/0.3597, allocations: 218 kB / 418.7 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005269/0.3602, allocations: 287.8 kB / 419 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006731/0.3669, allocations: 3.701 MB / 422.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.818e-05/0.367, allocations: 11.84 kB / 422.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002612/0.3673, allocations: 116 kB / 422.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001349/0.3675, allocations: 141.5 kB / 423 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006464/0.3739, allocations: 3.106 MB / 426.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02169/0.3957, allocations: 11.5 MB / 437.6 MB, free: 488 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002513/0.3982, allocations: 1.921 MB / 439.5 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/0.4, allocations: 1.08 MB / 440.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003007/0.4003, allocations: 203.2 kB / 440.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.451e-05/0.4004, allocations: 44.31 kB / 440.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.316e-06/0.4004, allocations: 0 / 440.8 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01357/0.4139, allocations: 6.516 MB / 447.3 MB, free: 6.418 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.414, allocations: 64.72 kB / 447.4 MB, free: 6.344 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00364/0.4177, allocations: 1.998 MB / 449.4 MB, free: 4.305 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001785/0.4179, allocations: 49.64 kB / 449.5 MB, free: 4.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.4189, allocations: 1.412 MB / 450.9 MB, free: 2.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005222/0.4195, allocations: 485 kB / 451.3 MB, free: 2.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006115/0.4201, allocations: 335.2 kB / 451.7 MB, free: 2.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.4202, allocations: 305.1 kB / 452 MB, free: 1.703 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001338/0.4216, allocations: 0.8159 MB / 452.8 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.4233, allocations: 1.383 MB / 454.2 MB, free: 15.25 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003177/0.4265, allocations: 2.364 MB / 456.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.59e-05/0.4265, allocations: 4 kB / 456.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004989/0.4315, allocations: 2.854 MB / 459.4 MB, free: 9.746 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.595e-05/0.4316, allocations: 12 kB / 459.4 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.256e-05/0.4316, allocations: 20 kB / 459.4 MB, free: 9.715 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009337/0.4325, allocations: 383.4 kB / 459.8 MB, free: 9.328 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001621/0.4342, allocations: 435.3 kB / 460.2 MB, free: 8.902 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006299/0.4405, allocations: 6.705 MB / 466.9 MB, free: 1.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00192/0.4424, allocations: 127.7 kB / 467 MB, free: 1.656 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002505/0.4427, allocations: 79.98 kB / 467.1 MB, free: 1.578 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001853/0.4446, allocations: 0.9155 MB / 468 MB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006259/0.4452, allocations: 205.4 kB / 468.2 MB, free: 460 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004119/0.4493, allocations: 2.421 MB / 470.7 MB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.419e-05/0.4494, allocations: 19.94 kB / 470.7 MB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.227e-05/0.4494, allocations: 4 kB / 470.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.4494, allocations: 3.984 kB / 470.7 MB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0119/0.4613, allocations: 5.505 MB / 476.2 MB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-05/0.4614, allocations: 4 kB / 476.2 MB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/0.4625, allocations: 267.5 kB / 476.5 MB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001125/0.4637, allocations: 400 kB / 476.8 MB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001571/0.4639, allocations: 39.98 kB / 476.9 MB, free: 7.594 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008646/0.4725, allocations: 8.255 MB / 485.1 MB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.4726, allocations: 7.938 kB / 485.1 MB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006267/0.4788, allocations: 3.603 MB / 488.8 MB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00184/0.4807, allocations: 470.3 kB / 489.2 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007914/0.4815, allocations: 36 kB / 489.2 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001613/0.4831, allocations: 87.89 kB / 489.3 MB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000296/0.4835, allocations: 105 kB / 489.4 MB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001121/0.4836, allocations: 47.98 kB / 489.5 MB, free: 10.31 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003106/0.4867, allocations: 1.361 MB / 490.8 MB, free: 8.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4867, allocations: 0 / 490.8 MB, free: 8.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003028/0.4897, allocations: 0.5391 MB / 491.4 MB, free: 8.391 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.006489/0.4962, allocations: 4.25 MB / 495.6 MB, free: 4.027 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003816/0.5001, allocations: 2.496 MB / 498.1 MB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.5001, allocations: 0 / 498.1 MB, free: 1.473 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002086/0.5022, allocations: 1.495 MB / 499.6 MB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003161/0.5054, allocations: 0.5446 MB / 0.4884 GB, free: 15.38 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03512/0.5405, allocations: 21.24 MB / 0.5092 GB, free: 9.301 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002728/0.5433, allocations: 2.205 MB / 0.5113 GB, free: 7.066 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001721/0.545, allocations: 0.4979 MB / 0.5118 GB, free: 6.566 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001691/0.5467, allocations: 1.136 MB / 0.5129 GB, free: 5.43 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/0.5468, allocations: 0 / 0.5129 GB, free: 5.43 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3193/0.8661, allocations: 52.82 MB / 0.5645 GB, free: 152.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/14.06, allocations: 11.25 kB / 0.5645 GB, free: 152.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_VoltageSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource_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_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches