Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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 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_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_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.00106/0.00106, allocations: 104.4 kB / 16.92 MB, free: 5.793 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.00104/0.001039, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.295/1.295, allocations: 222.9 MB / 241.5 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00105/0.00105, allocations: 51.05 kB / 300.7 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08184/0.08291, allocations: 49.45 MB / 350.2 MB, free: 4.352 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01278/0.09572, allocations: 10.91 MB / 361.1 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006211/0.102, allocations: 3.621 MB / 364.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001126/0.1031, allocations: 67.69 kB / 364.8 MB, free: 5.684 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.105, allocations: 0.815 MB / 365.6 MB, free: 4.863 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002024/0.1071, allocations: 0.8502 MB / 366.4 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008218/0.1079, allocations: 463.4 kB / 366.9 MB, free: 3.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.1107, allocations: 2.919 MB / 369.8 MB, free: 0.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1577/0.2684, allocations: 2.728 MB / 372.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.271, allocations: 1.367 MB / 373.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003669/0.2747, allocations: 1.75 MB / 375.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009414/0.2757, allocations: 371.8 kB / 376 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001534/0.2772, allocations: 479.4 kB / 376.5 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.2788, allocations: 1.072 MB / 377.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00248/0.2813, allocations: 1.671 MB / 379.2 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006619/0.2879, allocations: 4.817 MB / 384 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.344e-06/0.288, allocations: 0 / 384 MB, free: 8.543 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.288, allocations: 1.156 kB / 384 MB, free: 8.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.959e-05/0.2881, allocations: 0 / 384 MB, free: 8.543 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.01017/0.2983, allocations: 3.393 MB / 387.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.544e-05/0.2984, allocations: 9.031 kB / 387.4 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007007/0.2991, allocations: 361.8 kB / 387.8 MB, free: 6.395 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001296/0.3004, allocations: 338.7 kB / 388.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004238/0.3047, allocations: 1.771 MB / 389.9 MB, free: 5.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002082/0.3049, allocations: 193.4 kB / 390.1 MB, free: 4.957 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005617/0.3055, allocations: 253.2 kB / 390.3 MB, free: 4.871 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008034/0.3135, allocations: 3.282 MB / 393.6 MB, free: 2.938 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.565e-05/0.3136, allocations: 8.188 kB / 393.6 MB, free: 2.934 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003575/0.314, allocations: 100.8 kB / 393.7 MB, free: 2.859 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001868/0.3142, allocations: 125.4 kB / 393.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006854/0.3211, allocations: 2.745 MB / 396.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02255/0.3437, allocations: 10.5 MB / 407.1 MB, free: 8.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001824/0.3455, allocations: 1.361 MB / 408.5 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001202/0.3467, allocations: 0.7837 MB / 409.2 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002858/0.347, allocations: 210.2 kB / 409.4 MB, free: 5.762 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.377e-05/0.3471, allocations: 43.56 kB / 409.5 MB, free: 5.711 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.715e-06/0.3471, allocations: 4 kB / 409.5 MB, free: 5.707 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01552/0.3626, allocations: 6.895 MB / 416.4 MB, free: 14.72 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.3627, allocations: 64.41 kB / 416.4 MB, free: 14.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003485/0.3662, allocations: 1.789 MB / 418.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001769/0.3664, allocations: 45.7 kB / 418.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009644/0.3674, allocations: 1.274 MB / 419.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004416/0.3678, allocations: 439.8 kB / 420 MB, free: 11.09 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005359/0.3684, allocations: 296.8 kB / 420.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.684e-05/0.3685, allocations: 307.7 kB / 420.6 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.3697, allocations: 0.773 MB / 421.4 MB, free: 9.723 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.3713, allocations: 1.289 MB / 422.6 MB, free: 8.207 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002822/0.3741, allocations: 2.213 MB / 424.9 MB, free: 5.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.074e-05/0.3742, allocations: 4 kB / 424.9 MB, free: 5.828 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004126/0.3783, allocations: 2.468 MB / 427.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3783, allocations: 16.67 kB / 427.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/0.3784, allocations: 16 kB / 427.4 MB, free: 3.406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006144/0.379, allocations: 238 kB / 427.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001452/0.3805, allocations: 419.4 kB / 428 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002577/0.3831, allocations: 3.236 MB / 431.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001561/0.3846, allocations: 131.8 kB / 431.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001369/0.3848, allocations: 70.62 kB / 431.4 MB, free: 15.09 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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.001384/0.3862, allocations: 0.8212 MB / 432.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.3866, allocations: 181.8 kB / 432.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003336/0.39, allocations: 2.049 MB / 434.5 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/0.39, allocations: 15.94 kB / 434.5 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.39, allocations: 8 kB / 434.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.25e-05/0.39, allocations: 7.969 kB / 434.5 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007987/0.398, allocations: 4.753 MB / 439.3 MB, free: 7.207 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.345e-06/0.398, allocations: 4 kB / 439.3 MB, free: 7.203 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/0.3992, allocations: 262.5 kB / 439.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005347/0.3997, allocations: 207.2 kB / 439.7 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.293e-05/0.3998, allocations: 24 kB / 439.8 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002458/0.4023, allocations: 3.215 MB / 443 MB, free: 3.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.059e-06/0.4023, allocations: 12.09 kB / 443 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004507/0.4068, allocations: 3.129 MB / 446.1 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009145/0.4077, allocations: 426.7 kB / 446.5 MB, free: 15.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004025/0.4081, allocations: 20 kB / 446.5 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.4092, allocations: 99.88 kB / 446.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.4094, allocations: 84.72 kB / 446.7 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.298e-05/0.4095, allocations: 32 kB / 446.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001953/0.4114, allocations: 1.22 MB / 448 MB, free: 14.18 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4115, allocations: 0 / 448 MB, free: 14.18 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0018/0.4133, allocations: 488 kB / 448.5 MB, free: 13.7 MB / 366.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 (121): * Single equations (assignments): 117 * 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.004872/0.4181, allocations: 3.771 MB / 452.2 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004925/0.4231, allocations: 2.996 MB / 455.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.4231, allocations: 0 / 455.2 MB, free: 6.887 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001752/0.4249, allocations: 1.348 MB / 456.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.4273, allocations: 496.3 kB / 457 MB, free: 5.023 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02952/0.4569, allocations: 20.7 MB / 477.7 MB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00188/0.4588, allocations: 2.01 MB / 479.8 MB, free: 12.73 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001497/0.4603, allocations: 0.4921 MB / 480.3 MB, free: 12.23 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/0.4617, allocations: 1.011 MB / 481.3 MB, free: 11.22 MB / 398.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4617, allocations: 7.281 kB / 481.3 MB, free: 11.22 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08408/0.5458, allocations: 45.01 MB / 0.5139 GB, free: 14.71 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.914/10.46, allocations: 4.438 kB / 0.5139 GB, free: 14.71 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.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_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches