Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_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.00164/0.00164, allocations: 110.3 kB / 16.92 MB, free: 5.785 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.001887/0.001887, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 241.6 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009477/0.0009477, allocations: 46.95 kB / 300.7 MB, free: 5.723 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08012/0.08109, allocations: 49.45 MB / 350.2 MB, free: 4.273 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad): time 0.01004/0.09116, allocations: 8.976 MB / 359.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005202/0.0964, allocations: 3.166 MB / 362.3 MB, free: 8.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006625/0.09708, allocations: 47.75 kB / 362.4 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001465/0.09862, allocations: 0.6639 MB / 363 MB, free: 7.355 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001587/0.1002, allocations: 0.6989 MB / 363.7 MB, free: 6.652 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006536/0.1009, allocations: 323.5 kB / 364 MB, free: 6.336 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.1029, allocations: 2.094 MB / 366.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00157/0.1045, allocations: 1.429 MB / 367.6 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.1056, allocations: 0.907 MB / 368.5 MB, free: 1.844 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.1069, allocations: 1.121 MB / 369.6 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002881/0.1072, allocations: 228 kB / 369.8 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005514/0.1078, allocations: 315.8 kB / 370.1 MB, free: 192 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1517/0.2595, allocations: 0.674 MB / 370.8 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001284/0.2608, allocations: 1.087 MB / 371.9 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003317/0.2641, allocations: 3.065 MB / 374.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.2641, allocations: 0.6094 kB / 374.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.2641, allocations: 0 / 374.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.043e-05/0.2642, allocations: 0 / 374.9 MB, free: 12.91 MB / 302.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.004327/0.2685, allocations: 2.268 MB / 377.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.2686, allocations: 9.625 kB / 377.2 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002997/0.2689, allocations: 232.2 kB / 377.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006091/0.2695, allocations: 228.8 kB / 377.7 MB, free: 11.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001718/0.2712, allocations: 1.184 MB / 378.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.88e-05/0.2713, allocations: 112.7 kB / 379 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002255/0.2716, allocations: 159.4 kB / 379.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002945/0.2745, allocations: 2.004 MB / 381.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.68e-05/0.2746, allocations: 7.344 kB / 381.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001493/0.2747, allocations: 69.72 kB / 381.2 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.623e-05/0.2748, allocations: 76.48 kB / 381.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002497/0.2773, allocations: 1.65 MB / 382.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008422/0.2858, allocations: 6.942 MB / 389.9 MB, free: 5.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007158/0.2865, allocations: 451.6 kB / 390.3 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003428/0.2869, allocations: 260 kB / 390.6 MB, free: 5.434 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001945/0.2871, allocations: 111.9 kB / 390.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.931e-05/0.2871, allocations: 37.19 kB / 390.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of pre-optimization done (n=47): time 2.665e-06/0.2871, allocations: 3.938 kB / 390.7 MB, free: 5.285 MB / 302.1 MB Notification: Performance of matching and sorting (n=63): time 0.006793/0.2939, allocations: 3.284 MB / 394 MB, free: 3.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002033/0.296, allocations: 2.338 MB / 396.3 MB, free: 1.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002046/0.298, allocations: 1.621 MB / 398 MB, free: 428 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.666e-05/0.2981, allocations: 33.7 kB / 398 MB, free: 388 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006464/0.2987, allocations: 1.021 MB / 399 MB, free: 15.48 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001848/0.2989, allocations: 235.4 kB / 399.2 MB, free: 15.28 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004148/0.2993, allocations: 324.3 kB / 399.6 MB, free: 15.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.2995, allocations: 306.9 kB / 399.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007616/0.3002, allocations: 0.5175 MB / 400.4 MB, free: 14.54 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001347/0.3016, allocations: 1.462 MB / 401.8 MB, free: 12.97 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.3039, allocations: 2.139 MB / 404 MB, free: 11.13 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.407e-05/0.3039, allocations: 13.09 kB / 404 MB, free: 11.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=208) (initialization): time 0.003344/0.3073, allocations: 2.155 MB / 406.1 MB, free: 9.859 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.3073, allocations: 20 kB / 406.2 MB, free: 9.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.143e-05/0.3074, allocations: 36 kB / 406.2 MB, free: 9.805 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005261/0.3079, allocations: 229.7 kB / 406.4 MB, free: 9.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/0.309, allocations: 398.2 kB / 406.8 MB, free: 9.219 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/0.3107, allocations: 1.85 MB / 408.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.3121, allocations: 143.4 kB / 408.8 MB, free: 7.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001178/0.3122, allocations: 95.98 kB / 408.9 MB, free: 7.012 MB / 318.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.0008521/0.3131, allocations: 0.5859 MB / 409.5 MB, free: 6.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002275/0.3133, allocations: 150.1 kB / 409.6 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001969/0.3153, allocations: 1.114 MB / 410.7 MB, free: 5.172 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3153, allocations: 9.312 kB / 410.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.3153, allocations: 0 / 410.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.3153, allocations: 0 / 410.8 MB, free: 5.164 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005632/0.321, allocations: 3.406 MB / 414.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.321, allocations: 4.438 kB / 414.2 MB, free: 1.664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.3214, allocations: 109.8 kB / 414.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000646/0.3221, allocations: 233.1 kB / 414.5 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.524e-05/0.3222, allocations: 20 kB / 414.5 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004014/0.3262, allocations: 4.056 MB / 418.6 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.002127/0.3283, allocations: 2.168 MB / 420.7 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002756/0.3311, allocations: 1.742 MB / 422.5 MB, free: 8.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007867/0.3319, allocations: 311.1 kB / 422.8 MB, free: 8.547 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003299/0.3323, allocations: 19.94 kB / 422.8 MB, free: 8.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007849/0.333, allocations: 52 kB / 422.9 MB, free: 8.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/0.3332, allocations: 62.77 kB / 422.9 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-05/0.3333, allocations: 23.94 kB / 422.9 MB, free: 8.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001839/0.3351, allocations: 1.07 MB / 424 MB, free: 7.328 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3351, allocations: 0 / 424 MB, free: 7.328 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001747/0.3369, allocations: 384 kB / 424.4 MB, free: 6.953 MB / 334.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.003019/0.3399, allocations: 2.373 MB / 426.8 MB, free: 4.496 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002709/0.3426, allocations: 1.712 MB / 428.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.3426, allocations: 0 / 428.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001276/0.3439, allocations: 0.8515 MB / 429.3 MB, free: 1.961 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001951/0.3459, allocations: 407.6 kB / 429.7 MB, free: 1.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02093/0.3668, allocations: 16.72 MB / 446.4 MB, free: 15.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00125/0.3681, allocations: 1.465 MB / 447.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001186/0.3693, allocations: 350 kB / 448.3 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009443/0.3703, allocations: 0.6164 MB / 448.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3703, allocations: 3.938 kB / 448.9 MB, free: 12.73 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07994/0.4502, allocations: 35.6 MB / 484.5 MB, free: 9.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.78/12.23, allocations: 10.91 kB / 484.5 MB, free: 9.574 MB / 398.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_NoLoad.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_NoLoad/SMPM_NoLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_NoLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches