Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001283/0.001283, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002089/0.002089, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 63.91 kB / 307.1 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07803/0.07933, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01161/0.09098, allocations: 10.95 MB / 368.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.144/0.235, allocations: 3.674 MB / 372.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.2365, allocations: 67.88 kB / 372.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001681/0.2382, allocations: 0.8146 MB / 373.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001971/0.2402, allocations: 0.8634 MB / 374 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008568/0.2411, allocations: 459.8 kB / 374.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002391/0.2435, allocations: 2.929 MB / 377.3 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002589/0.2461, allocations: 2.736 MB / 380.1 MB, free: 8.961 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001496/0.2476, allocations: 1.373 MB / 381.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001866/0.2495, allocations: 1.763 MB / 383.2 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005087/0.25, allocations: 372.1 kB / 383.6 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008701/0.2509, allocations: 479.1 kB / 384 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008964/0.2518, allocations: 1.067 MB / 385.1 MB, free: 6.961 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001381/0.2532, allocations: 1.676 MB / 386.8 MB, free: 5.863 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003445/0.2567, allocations: 4.833 MB / 391.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.2567, allocations: 1.375 kB / 391.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.2567, allocations: 0 / 391.6 MB, free: 3.336 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.597e-05/0.2567, allocations: 6.25 kB / 391.6 MB, free: 3.332 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.005467/0.2622, allocations: 3.393 MB / 395 MB, free: 1.008 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.2623, allocations: 10.25 kB / 395 MB, free: 1.008 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003731/0.2626, allocations: 373.3 kB / 395.4 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008455/0.2635, allocations: 344.1 kB / 395.7 MB, free: 0.5625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002638/0.2661, allocations: 1.778 MB / 397.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001563/0.2663, allocations: 191.5 kB / 397.7 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003252/0.2666, allocations: 252.8 kB / 397.9 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00486/0.2715, allocations: 3.279 MB / 401.2 MB, free: 13.21 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.999e-05/0.2716, allocations: 10.7 kB / 401.2 MB, free: 13.2 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002343/0.2718, allocations: 106.9 kB / 401.3 MB, free: 13.12 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001305/0.272, allocations: 121.3 kB / 401.4 MB, free: 13.03 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004442/0.2764, allocations: 2.752 MB / 404.2 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01432/0.2908, allocations: 10.48 MB / 414.7 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001815/0.2926, allocations: 1.362 MB / 416 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001233/0.2938, allocations: 0.7838 MB / 416.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002843/0.2941, allocations: 210.7 kB / 417 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.752e-05/0.2942, allocations: 43.56 kB / 417.1 MB, free: 13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=98): time 2.595e-06/0.2942, allocations: 3.938 kB / 417.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of matching and sorting (n=123): time 0.0146/0.3088, allocations: 6.899 MB / 424 MB, free: 5.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.247e-05/0.3089, allocations: 64.41 kB / 424 MB, free: 5.918 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002396/0.3113, allocations: 1.798 MB / 425.8 MB, free: 4.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.281e-05/0.3114, allocations: 45.7 kB / 425.9 MB, free: 4.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008778/0.3123, allocations: 1.28 MB / 427.2 MB, free: 2.777 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003303/0.3126, allocations: 425.1 kB / 427.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000447/0.3131, allocations: 303.2 kB / 427.9 MB, free: 2.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.3132, allocations: 305.1 kB / 428.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001168/0.3144, allocations: 0.7691 MB / 428.9 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001426/0.3158, allocations: 1.298 MB / 430.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002692/0.3185, allocations: 2.211 MB / 432.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.103e-06/0.3185, allocations: 4 kB / 432.5 MB, free: 13.03 MB / 350.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003797/0.3223, allocations: 2.474 MB / 434.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3224, allocations: 12 kB / 434.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.841e-05/0.3224, allocations: 16 kB / 435 MB, free: 10.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006137/0.323, allocations: 243.6 kB / 435.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001476/0.3245, allocations: 419.3 kB / 435.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002662/0.3272, allocations: 3.238 MB / 438.8 MB, free: 6.332 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001391/0.3286, allocations: 123.8 kB / 439 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.3287, allocations: 75.92 kB / 439 MB, free: 6.137 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.001328/0.33, allocations: 0.8322 MB / 439.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003009/0.3303, allocations: 185.7 kB / 440.1 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003319/0.3337, allocations: 2.039 MB / 442.1 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/0.3337, allocations: 12 kB / 442.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3337, allocations: 0 / 442.1 MB, free: 3.031 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.321e-05/0.3337, allocations: 7.969 kB / 442.1 MB, free: 3.023 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007165/0.3409, allocations: 4.771 MB / 446.9 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.373e-06/0.3409, allocations: 4 kB / 446.9 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001098/0.342, allocations: 263.6 kB / 447.1 MB, free: 13.93 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000524/0.3426, allocations: 203.5 kB / 447.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.355e-05/0.3426, allocations: 24 kB / 447.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/0.3452, allocations: 3.218 MB / 450.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.3452, allocations: 4 kB / 450.6 MB, free: 10.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004315/0.3495, allocations: 3.135 MB / 453.7 MB, free: 6.992 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007166/0.3502, allocations: 426.6 kB / 454.1 MB, free: 6.555 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002403/0.3505, allocations: 24 kB / 454.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009579/0.3514, allocations: 99.8 kB / 454.3 MB, free: 6.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001669/0.3516, allocations: 80.83 kB / 454.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-05/0.3517, allocations: 36.06 kB / 454.4 MB, free: 6.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001688/0.3534, allocations: 1.224 MB / 455.6 MB, free: 5.105 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.563e-06/0.3534, allocations: 0 / 455.6 MB, free: 5.105 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001465/0.3549, allocations: 495.9 kB / 456.1 MB, free: 4.621 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.004806/0.3597, allocations: 3.775 MB / 459.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004956/0.3647, allocations: 2.983 MB / 462.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.3647, allocations: 8 kB / 462.8 MB, free: 13.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001802/0.3665, allocations: 1.339 MB / 464.2 MB, free: 12.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002129/0.3686, allocations: 0.4901 MB / 464.7 MB, free: 11.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02808/0.3967, allocations: 20.71 MB / 485.4 MB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/0.3986, allocations: 2.01 MB / 487.4 MB, free: 3.438 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001459/0.4001, allocations: 0.496 MB / 487.9 MB, free: 2.938 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00132/0.4014, allocations: 1.015 MB / 488.9 MB, free: 1.922 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.4014, allocations: 3.938 kB / 488.9 MB, free: 1.918 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07952/0.4809, allocations: 45.13 MB / 0.5215 GB, free: 5.188 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.829/10.31, allocations: 15.81 kB / 0.5215 GB, free: 5.176 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches