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.001318/0.001318, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001255/0.001255, allocations: 192 kB / 18.51 MB, free: 4.508 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.321/1.321, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001195/0.001195, allocations: 47.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07343/0.07463, allocations: 46.62 MB / 327.4 MB, free: 4.387 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01246/0.08713, allocations: 11.62 MB / 339 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006813/0.09397, allocations: 3.946 MB / 342.9 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001384/0.09539, allocations: 63.69 kB / 343 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001923/0.09735, allocations: 0.877 MB / 343.9 MB, free: 3.797 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002592/0.09996, allocations: 0.9434 MB / 344.8 MB, free: 2.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001089/0.1011, allocations: 0.5149 MB / 345.3 MB, free: 2.332 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003723/0.1048, allocations: 3.286 MB / 348.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003337/0.1082, allocations: 2.981 MB / 351.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00206/0.1102, allocations: 1.515 MB / 353.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002612/0.1129, allocations: 1.981 MB / 355.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007421/0.1136, allocations: 424 kB / 355.5 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001058/0.1147, allocations: 0.5233 MB / 356 MB, free: 7.547 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001123/0.1158, allocations: 1.216 MB / 357.3 MB, free: 6.328 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00204/0.1179, allocations: 1.882 MB / 359.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005396/0.1233, allocations: 5.437 MB / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.1233, allocations: 0 / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.1233, allocations: 4 kB / 364.6 MB, free: 14.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001666/0.1235, allocations: 0 / 364.6 MB, free: 14.98 MB / 318.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.007783/0.1313, allocations: 3.802 MB / 368.4 MB, free: 11.11 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.1314, allocations: 15.89 kB / 368.4 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005241/0.1319, allocations: 413.2 kB / 368.8 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009564/0.1329, allocations: 392.6 kB / 369.2 MB, free: 10.29 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003384/0.1363, allocations: 1.938 MB / 371.1 MB, free: 8.301 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001892/0.1365, allocations: 213.8 kB / 371.3 MB, free: 8.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004778/0.137, allocations: 291.9 kB / 371.6 MB, free: 7.805 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005884/0.1428, allocations: 3.701 MB / 375.3 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.025e-05/0.1429, allocations: 4 kB / 375.3 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002501/0.1432, allocations: 112 kB / 375.4 MB, free: 3.918 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000128/0.1433, allocations: 141.5 kB / 375.6 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004838/0.1482, allocations: 3.109 MB / 378.7 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1621/0.3102, allocations: 11.64 MB / 390.3 MB, free: 45.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002025/0.3123, allocations: 1.915 MB / 392.2 MB, free: 43.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001551/0.3139, allocations: 1.082 MB / 393.3 MB, free: 43.24 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002408/0.3141, allocations: 210 kB / 393.5 MB, free: 43.04 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.3142, allocations: 45.19 kB / 393.6 MB, free: 42.99 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.216e-06/0.3142, allocations: 0 / 393.6 MB, free: 42.99 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01019/0.3244, allocations: 6.513 MB / 400.1 MB, free: 39.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.585e-05/0.3244, allocations: 76.28 kB / 400.2 MB, free: 39.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.3264, allocations: 1.988 MB / 402.1 MB, free: 38.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.521e-05/0.3265, allocations: 57.05 kB / 402.2 MB, free: 38.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005179/0.327, allocations: 1.407 MB / 403.6 MB, free: 36.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.3272, allocations: 490.7 kB / 404.1 MB, free: 36.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003791/0.3276, allocations: 325.3 kB / 404.4 MB, free: 36.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.105e-05/0.3277, allocations: 308.8 kB / 404.7 MB, free: 35.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009284/0.3286, allocations: 0.8202 MB / 405.5 MB, free: 35.56 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001068/0.3297, allocations: 1.368 MB / 406.9 MB, free: 34.43 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002068/0.3317, allocations: 2.364 MB / 409.3 MB, free: 31.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.3318, allocations: 11.75 kB / 409.3 MB, free: 31.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.003169/0.3349, allocations: 2.854 MB / 412.1 MB, free: 29.04 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.829e-05/0.335, allocations: 12 kB / 412.1 MB, free: 29.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.52e-05/0.335, allocations: 16 kB / 412.1 MB, free: 29.01 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006766/0.3357, allocations: 393.2 kB / 412.5 MB, free: 28.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001202/0.3369, allocations: 435.3 kB / 413 MB, free: 28.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003804/0.3407, allocations: 6.696 MB / 419.7 MB, free: 21.09 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.342, allocations: 135.7 kB / 419.8 MB, free: 20.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.965e-05/0.3421, allocations: 76 kB / 419.9 MB, free: 20.88 MB / 318.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.001133/0.3432, allocations: 0.9116 MB / 420.8 MB, free: 19.96 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002847/0.3435, allocations: 205.5 kB / 421 MB, free: 19.75 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003166/0.3467, allocations: 2.431 MB / 423.4 MB, free: 17.29 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.165e-06/0.3467, allocations: 15.94 kB / 423.4 MB, free: 17.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.3467, allocations: 4 kB / 423.4 MB, free: 17.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.214e-05/0.3467, allocations: 7.969 kB / 423.4 MB, free: 17.26 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006781/0.3535, allocations: 5.518 MB / 428.9 MB, free: 11.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.3536, allocations: 7.938 kB / 429 MB, free: 11.61 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000934/0.3545, allocations: 259.6 kB / 429.2 MB, free: 11.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008161/0.3553, allocations: 403.5 kB / 429.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.452e-05/0.3554, allocations: 43.98 kB / 429.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004991/0.3604, allocations: 8.255 MB / 437.9 MB, free: 2.102 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.3605, allocations: 7.938 kB / 437.9 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004805/0.3653, allocations: 3.617 MB / 441.5 MB, free: 14.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009923/0.3663, allocations: 470.3 kB / 442 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002592/0.3665, allocations: 39.92 kB / 442 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009696/0.3675, allocations: 91.89 kB / 442.1 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002098/0.3677, allocations: 105 kB / 442.2 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.131e-05/0.3678, allocations: 44 kB / 442.3 MB, free: 13.62 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001937/0.3698, allocations: 1.357 MB / 443.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3698, allocations: 0 / 443.6 MB, free: 12.24 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001817/0.3716, allocations: 0.5358 MB / 444.2 MB, free: 11.71 MB / 334.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.005634/0.3773, allocations: 4.258 MB / 448.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005558/0.3828, allocations: 3.198 MB / 451.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/0.3829, allocations: 4 kB / 451.6 MB, free: 4.098 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002312/0.3852, allocations: 1.486 MB / 453.1 MB, free: 2.566 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003577/0.3888, allocations: 0.5444 MB / 453.6 MB, free: 2.023 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03788/0.4267, allocations: 23.7 MB / 477.3 MB, free: 8.297 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002808/0.4295, allocations: 2.201 MB / 479.5 MB, free: 6.062 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001961/0.4315, allocations: 0.494 MB / 480 MB, free: 5.566 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001723/0.4333, allocations: 1.14 MB / 481.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of SimCode: time 8.92e-07/0.4333, allocations: 0 / 481.2 MB, free: 4.426 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.123/0.5563, allocations: 51.18 MB / 0.5199 GB, free: 1.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.44, allocations: 448 / 0.5199 GB, free: 1.105 MB / 414.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