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.001053/0.001053, allocations: 114.4 kB / 17.74 MB, free: 5.355 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.001065/0.001066, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.266/1.266, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001143/0.001143, allocations: 59.91 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.08069, allocations: 46.61 MB / 374.7 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.1714/0.2521, allocations: 10.89 MB / 385.6 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00597/0.2581, allocations: 3.672 MB / 389.2 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001531/0.2597, allocations: 56.75 kB / 389.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002115/0.2619, allocations: 0.8699 MB / 390.1 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002647/0.2645, allocations: 0.9065 MB / 391.1 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.2657, allocations: 459.8 kB / 391.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003297/0.269, allocations: 2.954 MB / 394.5 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002635/0.2717, allocations: 2.68 MB / 397.1 MB, free: 1.066 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002196/0.2739, allocations: 1.372 MB / 398.5 MB, free: 408 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00277/0.2766, allocations: 1.756 MB / 400.3 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005362/0.2772, allocations: 374 kB / 400.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.2782, allocations: 475.5 kB / 401.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001134/0.2794, allocations: 1.071 MB / 402.2 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00221/0.2816, allocations: 1.674 MB / 403.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005975/0.2876, allocations: 4.896 MB / 408.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.2876, allocations: 0 / 408.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2876, allocations: 1.344 kB / 408.7 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001408/0.2878, allocations: 0 / 408.7 MB, free: 10.71 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.008303/0.2961, allocations: 3.466 MB / 412.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.242e-05/0.2961, allocations: 12.33 kB / 412.2 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006749/0.2968, allocations: 374.2 kB / 412.6 MB, free: 8.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.2979, allocations: 354.8 kB / 412.9 MB, free: 7.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003398/0.3013, allocations: 1.714 MB / 414.6 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001436/0.3015, allocations: 191.8 kB / 414.8 MB, free: 6.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004186/0.3019, allocations: 246.2 kB / 415.1 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005729/0.3076, allocations: 3.277 MB / 418.3 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-05/0.3077, allocations: 11.94 kB / 418.4 MB, free: 3.969 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002452/0.308, allocations: 101.6 kB / 418.5 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001243/0.3081, allocations: 132.9 kB / 418.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004825/0.3129, allocations: 2.748 MB / 421.3 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01661/0.3296, allocations: 10.44 MB / 431.8 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001886/0.3315, allocations: 1.339 MB / 433.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001172/0.3327, allocations: 0.7512 MB / 433.9 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002995/0.333, allocations: 207.2 kB / 434.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/0.3331, allocations: 43.56 kB / 434.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.216e-06/0.3331, allocations: 0 / 434.1 MB, free: 3.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01928/0.3524, allocations: 7.078 MB / 441.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.3525, allocations: 64.41 kB / 441.2 MB, free: 12.47 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00381/0.3563, allocations: 1.797 MB / 443 MB, free: 10.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001918/0.3565, allocations: 49.7 kB / 443.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001249/0.3578, allocations: 1.314 MB / 444.4 MB, free: 9.289 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004807/0.3583, allocations: 440.3 kB / 444.8 MB, free: 8.855 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006132/0.3589, allocations: 299.4 kB / 445.1 MB, free: 8.555 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.359, allocations: 305.1 kB / 445.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001707/0.3608, allocations: 0.7738 MB / 446.2 MB, free: 7.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001641/0.3624, allocations: 1.301 MB / 447.5 MB, free: 5.949 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002673/0.3651, allocations: 2.211 MB / 449.7 MB, free: 3.504 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.3651, allocations: 4 kB / 449.7 MB, free: 3.5 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.00401/0.3691, allocations: 2.491 MB / 452.2 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.3692, allocations: 15.98 kB / 452.2 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.3692, allocations: 16 kB / 452.2 MB, free: 0.957 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006399/0.3698, allocations: 243.5 kB / 452.5 MB, free: 0.707 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001478/0.3713, allocations: 415.3 kB / 452.9 MB, free: 308 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.3741, allocations: 3.238 MB / 456.1 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00155/0.3756, allocations: 139.8 kB / 456.3 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001393/0.3758, allocations: 72 kB / 456.3 MB, free: 12.57 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.001462/0.3773, allocations: 0.8172 MB / 457.1 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005054/0.3778, allocations: 194.7 kB / 457.3 MB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003451/0.3812, allocations: 2.039 MB / 459.4 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3812, allocations: 12 kB / 459.4 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.3813, allocations: 0 / 459.4 MB, free: 9.477 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.445e-05/0.3813, allocations: 11.91 kB / 459.4 MB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008384/0.3897, allocations: 4.733 MB / 464.1 MB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.3897, allocations: 4 kB / 464.1 MB, free: 4.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001122/0.3908, allocations: 259.6 kB / 464.4 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005422/0.3914, allocations: 199.3 kB / 464.6 MB, free: 4.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.139e-05/0.3915, allocations: 36.08 kB / 464.6 MB, free: 4.125 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002593/0.3941, allocations: 3.211 MB / 467.8 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3941, allocations: 4 kB / 467.8 MB, free: 0.625 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004526/0.3986, allocations: 3.14 MB / 471 MB, free: 13.44 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001118/0.3998, allocations: 431.7 kB / 471.4 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004686/0.4003, allocations: 27.94 kB / 471.4 MB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/0.4014, allocations: 95.86 kB / 471.5 MB, free: 12.88 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001601/0.4016, allocations: 80.83 kB / 471.6 MB, free: 12.8 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.986e-05/0.4017, allocations: 36.06 kB / 471.6 MB, free: 12.76 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002181/0.4039, allocations: 1.22 MB / 472.8 MB, free: 11.55 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4039, allocations: 0 / 472.8 MB, free: 11.55 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001911/0.4058, allocations: 491.9 kB / 473.3 MB, free: 11.07 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.004992/0.4108, allocations: 3.768 MB / 477.1 MB, free: 7.23 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003641/0.4145, allocations: 2.358 MB / 479.5 MB, free: 4.805 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.4145, allocations: 0 / 479.5 MB, free: 4.805 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001838/0.4164, allocations: 1.335 MB / 480.8 MB, free: 3.402 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003171/0.4195, allocations: 495.6 kB / 481.3 MB, free: 2.922 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03099/0.4506, allocations: 18.77 MB / 0.4883 GB, free: 15.39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002113/0.4527, allocations: 2.002 MB / 0.4903 GB, free: 13.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001521/0.4542, allocations: 0.4999 MB / 0.4908 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001444/0.4557, allocations: 1.011 MB / 0.4918 GB, free: 11.84 MB / 430.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4557, allocations: 0 / 0.4918 GB, free: 11.84 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1152/0.5709, allocations: 45.95 MB / 0.5366 GB, free: 13.76 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.34, allocations: 4.375 kB / 0.5366 GB, free: 13.76 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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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