Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.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.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",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.001444/0.001444, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001614/0.001614, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.324/1.324, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009612/0.0009613, allocations: 47.2 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07889/0.07986, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL): time 0.01232/0.09222, allocations: 11.79 MB / 362 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006039/0.09829, allocations: 3.916 MB / 365.9 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.09919, allocations: 71.62 kB / 366 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001694/0.1009, allocations: 0.8579 MB / 366.8 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001918/0.1028, allocations: 0.9899 MB / 367.8 MB, free: 2.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009005/0.1038, allocations: 0.5149 MB / 368.3 MB, free: 2.078 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.142/0.2458, allocations: 3.419 MB / 371.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002914/0.2487, allocations: 2.713 MB / 374.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001788/0.2505, allocations: 1.531 MB / 376 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001956/0.2525, allocations: 1.933 MB / 377.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005227/0.253, allocations: 413.1 kB / 378.3 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001099/0.2542, allocations: 0.6465 MB / 379 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009772/0.2551, allocations: 1.138 MB / 380.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00157/0.2567, allocations: 1.842 MB / 381.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004033/0.2608, allocations: 5.314 MB / 387.3 MB, free: 7.348 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2608, allocations: 4 kB / 387.3 MB, free: 7.344 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2608, allocations: 0 / 387.3 MB, free: 7.344 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.76e-05/0.2609, allocations: 1.469 kB / 387.3 MB, free: 7.344 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.006288/0.2672, allocations: 3.709 MB / 391 MB, free: 4.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.2672, allocations: 8.375 kB / 391 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004295/0.2676, allocations: 389.6 kB / 391.4 MB, free: 4.555 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.2689, allocations: 437.4 kB / 391.8 MB, free: 4.355 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/0.2716, allocations: 1.901 MB / 393.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001625/0.2718, allocations: 210.8 kB / 393.9 MB, free: 3.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003556/0.2721, allocations: 269.3 kB / 394.2 MB, free: 2.918 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004604/0.2768, allocations: 3.521 MB / 397.7 MB, free: 0.8398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.605e-05/0.2768, allocations: 9.906 kB / 397.7 MB, free: 0.8359 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002325/0.2771, allocations: 109.2 kB / 397.8 MB, free: 0.7539 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00011/0.2772, allocations: 119.4 kB / 397.9 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004542/0.2817, allocations: 2.973 MB / 400.9 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01596/0.2977, allocations: 11.1 MB / 412 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/0.3006, allocations: 2.283 MB / 414.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001955/0.3026, allocations: 1.18 MB / 415.4 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000296/0.3029, allocations: 207.4 kB / 415.6 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.431e-05/0.3029, allocations: 47.88 kB / 415.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=131): time 3.176e-06/0.3029, allocations: 0 / 415.7 MB, free: 15.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=148): time 0.01582/0.3188, allocations: 7.499 MB / 423.2 MB, free: 7.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.3188, allocations: 70.97 kB / 423.3 MB, free: 7.734 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002619/0.3215, allocations: 1.983 MB / 425.2 MB, free: 5.707 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.771e-05/0.3216, allocations: 45.7 kB / 425.3 MB, free: 5.656 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009045/0.3225, allocations: 1.313 MB / 426.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003886/0.3229, allocations: 0.5092 MB / 427.1 MB, free: 3.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005141/0.3234, allocations: 323.2 kB / 427.4 MB, free: 3.516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.754e-05/0.3235, allocations: 305.1 kB / 427.7 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/0.3249, allocations: 0.8862 MB / 428.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001769/0.3267, allocations: 1.366 MB / 430 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003334/0.3301, allocations: 2.38 MB / 432.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3301, allocations: 8 kB / 432.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005001/0.3351, allocations: 2.99 MB / 435.4 MB, free: 11.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.603e-05/0.3351, allocations: 19.92 kB / 435.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.54e-05/0.3352, allocations: 19.98 kB / 435.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001085/0.3363, allocations: 458.3 kB / 435.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001603/0.3379, allocations: 438.5 kB / 436.3 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006876/0.3448, allocations: 6.084 MB / 442.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/0.3464, allocations: 123.8 kB / 442.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.3466, allocations: 79.98 kB / 442.6 MB, free: 3.879 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 194 * Array equations: 2 * 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): 2 systems {(3,16,100.0%), (1,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001442/0.348, allocations: 0.8455 MB / 443.4 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003743/0.3484, allocations: 213.4 kB / 443.6 MB, free: 2.836 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004389/0.3528, allocations: 2.597 MB / 446.2 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.23e-05/0.3529, allocations: 16 kB / 446.2 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/0.3529, allocations: 4 kB / 446.2 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.459e-05/0.3529, allocations: 7.969 kB / 446.2 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009/0.3619, allocations: 5.647 MB / 451.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.3619, allocations: 4 kB / 451.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001251/0.3632, allocations: 281.9 kB / 452.2 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001279/0.3645, allocations: 0.4967 MB / 452.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001038/0.3646, allocations: 39.92 kB / 452.7 MB, free: 9.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007654/0.3722, allocations: 7.686 MB / 460.4 MB, free: 1.609 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.058e-06/0.3723, allocations: 4 kB / 460.4 MB, free: 1.605 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005991/0.3783, allocations: 3.838 MB / 464.2 MB, free: 13.7 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009765/0.3793, allocations: 482.4 kB / 464.7 MB, free: 13.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002933/0.3796, allocations: 35.98 kB / 464.7 MB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001188/0.3807, allocations: 95.89 kB / 464.8 MB, free: 13.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002732/0.381, allocations: 120.6 kB / 464.9 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.3811, allocations: 43.98 kB / 465 MB, free: 12.92 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001977/0.3831, allocations: 1.359 MB / 466.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3831, allocations: 4 kB / 466.3 MB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001929/0.3851, allocations: 0.5852 MB / 466.9 MB, free: 10.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (125): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,16,100.0%), (1,6,100.0%), (2,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.006434/0.3915, allocations: 4.514 MB / 471.4 MB, free: 6.379 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006156/0.3977, allocations: 3.356 MB / 474.8 MB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3977, allocations: 0.5 kB / 474.8 MB, free: 3.043 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002724/0.4004, allocations: 1.608 MB / 476.4 MB, free: 1.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002429/0.4029, allocations: 495 kB / 476.9 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0335/0.4364, allocations: 24.22 MB / 0.4894 GB, free: 6.953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001831/0.4383, allocations: 2.128 MB / 0.4914 GB, free: 4.793 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001457/0.4397, allocations: 477 kB / 0.4919 GB, free: 4.324 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/0.4411, allocations: 1.065 MB / 0.4929 GB, free: 3.258 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4411, allocations: 0 / 0.4929 GB, free: 3.258 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2306/0.6717, allocations: 52.18 MB / 0.5439 GB, free: 152.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.884/10.56, allocations: 7.5 kB / 0.5439 GB, free: 152.9 MB / 446.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMEE_DOL/SMEE_DOL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches