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.001422/0.001422, allocations: 114.5 kB / 17.73 MB, free: 5.328 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.001693/0.001693, allocations: 187 kB / 18.66 MB, free: 4.406 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.318/1.318, allocations: 205.1 MB / 224.5 MB, free: 12.28 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.001369/0.001369, allocations: 52.39 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08801/0.08939, allocations: 46.64 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.1865/0.2759, allocations: 10.88 MB / 385.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007296/0.2833, allocations: 3.669 MB / 389.2 MB, free: 5.172 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002587/0.2859, allocations: 56.88 kB / 389.3 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002981/0.289, allocations: 0.8183 MB / 390.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004405/0.2934, allocations: 0.8616 MB / 391 MB, free: 4.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001935/0.2954, allocations: 461.8 kB / 391.4 MB, free: 3.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005309/0.3007, allocations: 2.944 MB / 394.3 MB, free: 2.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004552/0.3053, allocations: 2.689 MB / 397 MB, free: 1.266 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002728/0.308, allocations: 1.375 MB / 398.4 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003814/0.3119, allocations: 1.752 MB / 400.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001469/0.3133, allocations: 373 kB / 400.5 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002278/0.3156, allocations: 473.2 kB / 401 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002354/0.318, allocations: 1.075 MB / 402.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00467/0.3227, allocations: 1.673 MB / 403.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008183/0.3309, allocations: 4.878 MB / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.3309, allocations: 0 / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.655e-06/0.331, allocations: 1.281 kB / 408.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002216/0.3312, 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.01034/0.3415, allocations: 3.391 MB / 412 MB, free: 8.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.998e-05/0.3416, allocations: 13.8 kB / 412 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009553/0.3426, allocations: 363.2 kB / 412.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001612/0.3442, allocations: 340.5 kB / 412.7 MB, free: 8.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004329/0.3485, allocations: 1.709 MB / 414.4 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.3488, allocations: 187.2 kB / 414.6 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005934/0.3494, allocations: 247.2 kB / 414.8 MB, free: 6.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00659/0.356, allocations: 3.288 MB / 418.1 MB, free: 4.293 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-05/0.3561, allocations: 15.83 kB / 418.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002367/0.3563, allocations: 100 kB / 418.2 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001492/0.3565, allocations: 124.9 kB / 418.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004712/0.3612, allocations: 2.748 MB / 421.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01728/0.3785, allocations: 10.4 MB / 431.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.3803, allocations: 1.354 MB / 432.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001163/0.3814, allocations: 0.7462 MB / 433.6 MB, free: 4.359 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000279/0.3817, allocations: 204.3 kB / 433.8 MB, free: 4.125 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.375e-05/0.3818, allocations: 51.55 kB / 433.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.646e-06/0.3818, allocations: 0 / 433.9 MB, free: 4.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01565/0.3975, allocations: 7.039 MB / 440.9 MB, free: 12.91 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.304e-05/0.3976, allocations: 64.41 kB / 441 MB, free: 12.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002867/0.4004, allocations: 1.786 MB / 442.7 MB, free: 11.05 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001166/0.4006, allocations: 45.7 kB / 442.8 MB, free: 11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009016/0.4015, allocations: 1.275 MB / 444.1 MB, free: 9.707 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.4018, allocations: 429.9 kB / 444.5 MB, free: 9.281 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004716/0.4023, allocations: 303.2 kB / 444.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.4024, allocations: 305.1 kB / 445.1 MB, free: 8.676 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001142/0.4036, allocations: 0.773 MB / 445.9 MB, free: 7.902 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001469/0.4051, allocations: 1.297 MB / 447.2 MB, free: 6.375 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00276/0.4078, allocations: 2.215 MB / 449.4 MB, free: 3.926 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.026e-05/0.4079, allocations: 4 kB / 449.4 MB, free: 3.922 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004292/0.4122, allocations: 2.482 MB / 451.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.4122, allocations: 12 kB / 451.9 MB, free: 1.406 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/0.4123, allocations: 16 kB / 451.9 MB, free: 1.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006525/0.4129, allocations: 239.2 kB / 452.1 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001449/0.4144, allocations: 411.3 kB / 452.5 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002762/0.4172, allocations: 3.245 MB / 455.8 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001621/0.4188, allocations: 127.7 kB / 455.9 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.4189, allocations: 68 kB / 456 MB, free: 13.02 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.001424/0.4204, allocations: 0.8213 MB / 456.8 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003281/0.4207, allocations: 181.8 kB / 457 MB, free: 12 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003147/0.4238, allocations: 2.039 MB / 459 MB, free: 9.945 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-05/0.4239, allocations: 12 kB / 459 MB, free: 9.934 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.4239, allocations: 4 kB / 459 MB, free: 9.93 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.549e-05/0.4239, allocations: 15.91 kB / 459 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008097/0.432, allocations: 4.729 MB / 463.7 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.665e-06/0.4321, allocations: 0 / 463.7 MB, free: 5.078 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/0.4332, allocations: 263.9 kB / 464 MB, free: 4.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005977/0.4338, allocations: 203.3 kB / 464.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.757e-05/0.4339, allocations: 31.88 kB / 464.2 MB, free: 4.578 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002883/0.4368, allocations: 3.214 MB / 467.5 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.952e-06/0.4368, allocations: 7.938 kB / 467.5 MB, free: 1.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004818/0.4416, allocations: 3.12 MB / 470.6 MB, free: 13.9 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001508/0.4432, allocations: 422.7 kB / 471 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003415/0.4435, allocations: 35.98 kB / 471 MB, free: 13.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/0.4445, allocations: 96.02 kB / 471.1 MB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.4447, allocations: 76.88 kB / 471.2 MB, free: 13.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/0.4448, allocations: 35.98 kB / 471.2 MB, free: 13.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002074/0.4469, allocations: 1.224 MB / 472.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4469, allocations: 4 kB / 472.5 MB, free: 12.01 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002034/0.4489, allocations: 484 kB / 472.9 MB, free: 11.54 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.005221/0.4542, allocations: 3.763 MB / 476.7 MB, free: 7.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003766/0.458, allocations: 2.35 MB / 479 MB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.051e-06/0.458, allocations: 1 kB / 479 MB, free: 5.281 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00179/0.4598, allocations: 1.338 MB / 480.4 MB, free: 3.875 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003692/0.4635, allocations: 494.5 kB / 480.9 MB, free: 3.395 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04305/0.5066, allocations: 18.68 MB / 499.5 MB, free: 15.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001761/0.5084, allocations: 2.01 MB / 0.4898 GB, free: 13.92 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001751/0.5102, allocations: 0.4999 MB / 0.4903 GB, free: 13.42 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001415/0.5116, allocations: 1.003 MB / 0.4913 GB, free: 12.41 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.5116, allocations: 0 / 0.4913 GB, free: 12.41 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1168/0.6284, allocations: 46.42 MB / 0.5366 GB, free: 13.86 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.3, allocations: 4.5 kB / 0.5366 GB, free: 13.86 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