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.001282/0.001282, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001413/0.001413, allocations: 191 kB / 18.66 MB, free: 4.445 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.325/1.325, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001233/0.001233, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.08475, allocations: 46.62 MB / 374.7 MB, free: 5.059 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.1818/0.2666, allocations: 10.88 MB / 385.5 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007143/0.2738, allocations: 3.678 MB / 389.2 MB, free: 5.188 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00219/0.276, allocations: 61.91 kB / 389.3 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.2786, allocations: 0.8131 MB / 390.1 MB, free: 4.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003313/0.2819, allocations: 0.861 MB / 391 MB, free: 4.176 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00143/0.2833, allocations: 454.7 kB / 391.4 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003913/0.2873, allocations: 2.959 MB / 394.4 MB, free: 2.414 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003481/0.2908, allocations: 2.685 MB / 397 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002236/0.293, allocations: 1.378 MB / 398.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003089/0.2961, allocations: 1.753 MB / 400.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.2972, allocations: 374.5 kB / 400.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001797/0.299, allocations: 471.1 kB / 401 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001701/0.3007, allocations: 1.068 MB / 402.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003062/0.3038, allocations: 1.674 MB / 403.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005536/0.3094, allocations: 4.881 MB / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.3094, allocations: 1.031 kB / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.3094, allocations: 0 / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001249/0.3095, allocations: 0 / 408.6 MB, free: 10.91 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007719/0.3173, allocations: 3.392 MB / 412 MB, free: 8.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.3173, allocations: 13.67 kB / 412 MB, free: 8.566 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000535/0.3179, allocations: 371.6 kB / 412.4 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.3188, allocations: 339.1 kB / 412.7 MB, free: 8.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002913/0.3217, allocations: 1.705 MB / 414.4 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.3218, allocations: 193 kB / 414.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003828/0.3222, allocations: 246.9 kB / 414.9 MB, free: 6.73 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00575/0.328, allocations: 3.281 MB / 418.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.356e-05/0.3281, allocations: 7.906 kB / 418.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002352/0.3283, allocations: 104 kB / 418.2 MB, free: 4.164 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.3285, allocations: 124.9 kB / 418.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004711/0.3332, allocations: 2.753 MB / 421.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01597/0.3492, allocations: 10.39 MB / 431.5 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00177/0.351, allocations: 1.346 MB / 432.9 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001143/0.3522, allocations: 0.7544 MB / 433.6 MB, free: 4.344 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002751/0.3524, allocations: 207.2 kB / 433.8 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.686e-05/0.3525, allocations: 43.56 kB / 433.9 MB, free: 4.051 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 6.362e-06/0.3525, allocations: 3.984 kB / 433.9 MB, free: 4.047 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01482/0.3673, allocations: 7.03 MB / 440.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.376e-05/0.3674, allocations: 68.34 kB / 441 MB, free: 12.83 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002492/0.3699, allocations: 1.786 MB / 442.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001105/0.37, allocations: 45.7 kB / 442.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008475/0.3709, allocations: 1.275 MB / 444.1 MB, free: 9.699 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003542/0.3712, allocations: 437.8 kB / 444.5 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004485/0.3717, allocations: 295.2 kB / 444.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.984e-05/0.3718, allocations: 305.1 kB / 445.1 MB, free: 8.668 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.373, allocations: 0.7769 MB / 445.9 MB, free: 7.891 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/0.3744, allocations: 1.297 MB / 447.2 MB, free: 6.363 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002731/0.3772, allocations: 2.219 MB / 449.4 MB, free: 3.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.3772, allocations: 4 kB / 449.4 MB, free: 3.906 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003949/0.3811, allocations: 2.474 MB / 451.8 MB, free: 1.41 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.23e-05/0.3812, allocations: 12 kB / 451.9 MB, free: 1.398 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.347e-05/0.3812, allocations: 16 kB / 451.9 MB, free: 1.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006242/0.3819, allocations: 235.2 kB / 452.1 MB, free: 1.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.3834, allocations: 423.3 kB / 452.5 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.386, allocations: 3.238 MB / 455.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.3875, allocations: 131.7 kB / 455.9 MB, free: 13.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/0.3877, allocations: 71.98 kB / 456 MB, free: 13 MB / 382.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.001327/0.389, allocations: 0.8173 MB / 456.8 MB, free: 12.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003273/0.3894, allocations: 185.8 kB / 457 MB, free: 11.99 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003223/0.3926, allocations: 2.039 MB / 459 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.3926, allocations: 15.98 kB / 459 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3926, allocations: 0 / 459 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.274e-05/0.3926, allocations: 7.922 kB / 459 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007264/0.3999, allocations: 4.721 MB / 463.7 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.045e-06/0.3999, allocations: 4.281 kB / 463.7 MB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.401, allocations: 267.6 kB / 464 MB, free: 4.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005388/0.4016, allocations: 203.2 kB / 464.2 MB, free: 4.602 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.557e-05/0.4017, allocations: 27.94 kB / 464.2 MB, free: 4.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002538/0.4042, allocations: 3.222 MB / 467.5 MB, free: 1.066 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.4042, allocations: 4 kB / 467.5 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004352/0.4086, allocations: 3.124 MB / 470.6 MB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000863/0.4095, allocations: 426.7 kB / 471 MB, free: 13.45 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002645/0.4098, allocations: 32 kB / 471 MB, free: 13.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009145/0.4107, allocations: 91.88 kB / 471.1 MB, free: 13.33 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4108, allocations: 80.83 kB / 471.2 MB, free: 13.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-05/0.4109, allocations: 35.98 kB / 471.2 MB, free: 13.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001779/0.4127, allocations: 1.22 MB / 472.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4127, allocations: 4 kB / 472.5 MB, free: 12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00157/0.4143, allocations: 484 kB / 472.9 MB, free: 11.53 MB / 398.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.004844/0.4191, allocations: 3.764 MB / 476.7 MB, free: 7.695 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00352/0.4227, allocations: 2.347 MB / 479 MB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.4227, allocations: 4 kB / 479 MB, free: 5.277 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001867/0.4246, allocations: 1.338 MB / 480.4 MB, free: 3.871 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002787/0.4274, allocations: 499.3 kB / 480.9 MB, free: 3.387 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03261/0.46, allocations: 18.67 MB / 499.5 MB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002367/0.4624, allocations: 2.01 MB / 0.4898 GB, free: 13.91 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001509/0.464, allocations: 0.496 MB / 0.4903 GB, free: 13.41 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001496/0.4655, allocations: 1.015 MB / 0.4913 GB, free: 12.4 MB / 430.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4655, allocations: 0 / 0.4913 GB, free: 12.4 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09505/0.5605, allocations: 46.41 MB / 0.5366 GB, free: 13.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.43/12.99, allocations: 8.312 kB / 0.5366 GB, free: 13.85 MB / 478.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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