Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.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_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_NoLoad",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.001425/0.001425, allocations: 113.2 kB / 17.73 MB, free: 5.324 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.001552/0.001552, allocations: 188.2 kB / 18.67 MB, free: 4.391 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.282/1.282, 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.001362/0.001362, allocations: 59.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08024/0.08161, allocations: 46.62 MB / 374.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad): time 0.174/0.2557, allocations: 8.954 MB / 383.6 MB, free: 8.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004808/0.2605, allocations: 3.221 MB / 386.8 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000742/0.2613, allocations: 40 kB / 386.9 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001569/0.2629, allocations: 0.7104 MB / 387.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001824/0.2648, allocations: 0.7352 MB / 388.3 MB, free: 5.969 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007657/0.2656, allocations: 327.9 kB / 388.6 MB, free: 5.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002181/0.2677, allocations: 2.108 MB / 390.7 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001488/0.2693, allocations: 1.401 MB / 392.1 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.2706, allocations: 0.9085 MB / 393.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001367/0.272, allocations: 1.134 MB / 394.2 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003077/0.2723, allocations: 230.9 kB / 394.4 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006865/0.273, allocations: 318.4 kB / 394.7 MB, free: 3.109 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005619/0.2736, allocations: 0.675 MB / 395.4 MB, free: 2.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009631/0.2746, allocations: 1.089 MB / 396.5 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003794/0.2784, allocations: 3.125 MB / 399.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.2784, allocations: 0 / 399.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.2784, allocations: 0 / 399.6 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001359/0.2785, allocations: 0 / 399.6 MB, free: 0.9297 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: 401 * Number of variables: 401 Notification: Performance of Generate backend data structure: time 0.005765/0.2843, allocations: 2.314 MB / 401.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.2844, allocations: 14.05 kB / 401.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003434/0.2847, allocations: 234.2 kB / 402.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006903/0.2854, allocations: 235.7 kB / 402.4 MB, free: 15.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002159/0.2876, allocations: 1.173 MB / 403.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.85e-05/0.2877, allocations: 113 kB / 403.7 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.288, allocations: 163.6 kB / 403.8 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003285/0.2913, allocations: 1.997 MB / 405.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.346e-05/0.2913, allocations: 15.16 kB / 405.9 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001544/0.2915, allocations: 65.73 kB / 405.9 MB, free: 12.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.014e-05/0.2916, allocations: 76.14 kB / 406 MB, free: 12.75 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002707/0.2943, allocations: 1.645 MB / 407.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009766/0.3041, allocations: 6.916 MB / 414.6 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007469/0.3049, allocations: 448.1 kB / 415 MB, free: 6.223 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003614/0.3052, allocations: 264.3 kB / 415.2 MB, free: 6.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002153/0.3055, allocations: 116 kB / 415.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.862e-05/0.3055, allocations: 45.16 kB / 415.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of pre-optimization done (n=47): time 2.295e-06/0.3055, allocations: 0 / 415.4 MB, free: 5.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=63): time 0.00704/0.3126, allocations: 3.314 MB / 418.7 MB, free: 3.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002369/0.315, allocations: 2.341 MB / 421.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002164/0.3171, allocations: 1.62 MB / 422.7 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.3172, allocations: 33.7 kB / 422.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007119/0.3179, allocations: 1.049 MB / 423.8 MB, free: 14.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001985/0.3181, allocations: 254 kB / 424 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004229/0.3186, allocations: 319.3 kB / 424.3 MB, free: 13.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.966e-05/0.3187, allocations: 305.1 kB / 424.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007561/0.3194, allocations: 0.5192 MB / 425.1 MB, free: 12.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001599/0.321, allocations: 1.461 MB / 426.6 MB, free: 10.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002334/0.3234, allocations: 2.141 MB / 428.7 MB, free: 8.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.267e-05/0.3234, allocations: 12 kB / 428.8 MB, free: 8.109 MB / 350.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003243/0.3267, allocations: 2.165 MB / 430.9 MB, free: 5.926 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.3267, allocations: 20 kB / 430.9 MB, free: 5.906 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-05/0.3267, allocations: 36 kB / 431 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.3273, allocations: 227.2 kB / 431.2 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001118/0.3284, allocations: 395.2 kB / 431.6 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00172/0.3301, allocations: 1.844 MB / 433.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001468/0.3316, allocations: 143.6 kB / 433.6 MB, free: 3.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.3318, allocations: 100 kB / 433.7 MB, free: 3.023 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 152 * 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 (204): * Single equations (assignments): 201 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001213/0.333, allocations: 0.5867 MB / 434.3 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000378/0.3334, allocations: 163 kB / 434.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002498/0.3359, allocations: 1.106 MB / 435.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.861e-05/0.3359, allocations: 7.984 kB / 435.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.692e-06/0.3359, allocations: 4 kB / 435.5 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.336, allocations: 3.984 kB / 435.5 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007709/0.3437, allocations: 3.391 MB / 438.9 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.3437, allocations: 12.03 kB / 438.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006012/0.3443, allocations: 111.8 kB / 439 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008609/0.3452, allocations: 222.3 kB / 439.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.671e-05/0.3453, allocations: 19.98 kB / 439.3 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005199/0.3505, allocations: 4.058 MB / 443.3 MB, free: 8.867 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002034/0.3526, allocations: 2.157 MB / 445.5 MB, free: 6.559 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00277/0.3554, allocations: 1.759 MB / 447.3 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007385/0.3561, allocations: 320.2 kB / 447.6 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001851/0.3563, allocations: 19.94 kB / 447.6 MB, free: 4.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00067/0.357, allocations: 56.19 kB / 447.6 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.3571, allocations: 71.73 kB / 447.7 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.243e-05/0.3572, allocations: 27.98 kB / 447.7 MB, free: 4.203 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002176/0.3594, allocations: 1.063 MB / 448.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3594, allocations: 0 / 448.8 MB, free: 3.145 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002525/0.3619, allocations: 383.9 kB / 449.2 MB, free: 2.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 1 ($STATESET1.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 (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 1 system {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004039/0.366, allocations: 2.366 MB / 451.5 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003503/0.3695, allocations: 1.617 MB / 453.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.3695, allocations: 0 / 453.2 MB, free: 14.64 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001773/0.3713, allocations: 0.8516 MB / 454 MB, free: 13.74 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003089/0.3744, allocations: 418.2 kB / 454.4 MB, free: 13.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02248/0.3969, allocations: 15.29 MB / 469.7 MB, free: 12.79 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001107/0.398, allocations: 1.465 MB / 471.2 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001029/0.3991, allocations: 358 kB / 471.5 MB, free: 10.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007725/0.3999, allocations: 0.6203 MB / 472.1 MB, free: 10.32 MB / 398.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3999, allocations: 0 / 472.1 MB, free: 10.32 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0755/0.4754, allocations: 36.33 MB / 0.4966 GB, free: 5.875 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.04/15.52, allocations: 3.984 kB / 0.4966 GB, free: 5.871 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_res.csv --start-time 0 --stop-time 0.04 --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_NoLoad.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad_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_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches