Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",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.001179/0.001179, allocations: 109.2 kB / 17.06 MB, free: 5.973 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.001283/0.001283, allocations: 196.1 kB / 18.01 MB, free: 5.051 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.321/1.321, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001078, allocations: 43.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2549/0.2559, allocations: 49.43 MB / 400.3 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking): time 0.01206/0.268, allocations: 11.43 MB / 411.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006739/0.2748, allocations: 3.539 MB / 415.2 MB, free: 9.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001679/0.2766, allocations: 67.69 kB / 415.3 MB, free: 9.695 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00237/0.2789, allocations: 0.8853 MB / 416.2 MB, free: 8.805 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002944/0.282, allocations: 0.9708 MB / 417.1 MB, free: 7.828 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001041/0.283, allocations: 443.3 kB / 417.6 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004348/0.2874, allocations: 3.744 MB / 421.3 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003164/0.2906, allocations: 2.865 MB / 424.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002632/0.2932, allocations: 1.659 MB / 425.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002837/0.2961, allocations: 1.969 MB / 427.8 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007325/0.2968, allocations: 420 kB / 428.2 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.298, allocations: 0.5037 MB / 428.7 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.299, allocations: 1.192 MB / 429.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.3013, allocations: 1.933 MB / 431.9 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005732/0.307, allocations: 5.566 MB / 437.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.261e-06/0.3071, allocations: 0 / 437.4 MB, free: 3.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3071, allocations: 4 kB / 437.4 MB, free: 3.422 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001424/0.3072, allocations: 0 / 437.4 MB, free: 3.422 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.007549/0.3148, allocations: 3.896 MB / 441.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.3148, allocations: 12.03 kB / 441.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004799/0.3153, allocations: 413 kB / 441.7 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009188/0.3163, allocations: 406.6 kB / 442.1 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003664/0.3199, allocations: 2.073 MB / 444.2 MB, free: 12.5 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.3201, allocations: 213.8 kB / 444.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004206/0.3205, allocations: 287.9 kB / 444.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005969/0.3265, allocations: 3.857 MB / 448.5 MB, free: 8.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.827e-05/0.3266, allocations: 11.94 kB / 448.6 MB, free: 8.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002623/0.3269, allocations: 120 kB / 448.7 MB, free: 7.938 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001095/0.327, allocations: 117.5 kB / 448.8 MB, free: 7.82 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005079/0.3321, allocations: 3.254 MB / 452 MB, free: 4.555 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02096/0.353, allocations: 11.82 MB / 463.9 MB, free: 8.426 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003922/0.357, allocations: 3.675 MB / 467.5 MB, free: 4.332 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002371/0.3594, allocations: 1.244 MB / 468.8 MB, free: 3.094 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002833/0.3597, allocations: 126.4 kB / 468.9 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.717e-05/0.3598, allocations: 51.88 kB / 469 MB, free: 2.891 MB / 382.1 MB Notification: Performance of pre-optimization done (n=136): time 5.209e-06/0.3598, allocations: 3.984 kB / 469 MB, free: 2.887 MB / 382.1 MB Notification: Performance of matching and sorting (n=151): time 0.01549/0.3753, allocations: 7.368 MB / 476.3 MB, free: 11.27 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3754, allocations: 68.72 kB / 476.4 MB, free: 11.19 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003982/0.3794, allocations: 2.068 MB / 478.5 MB, free: 9.078 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001825/0.3796, allocations: 49.7 kB / 478.5 MB, free: 9.023 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.3808, allocations: 1.401 MB / 479.9 MB, free: 7.609 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006018/0.3814, allocations: 0.5345 MB / 480.4 MB, free: 7.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007048/0.3821, allocations: 347.4 kB / 480.8 MB, free: 6.723 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.3822, allocations: 305.1 kB / 481.1 MB, free: 6.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001489/0.3837, allocations: 0.8666 MB / 481.9 MB, free: 5.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001804/0.3856, allocations: 1.373 MB / 483.3 MB, free: 3.977 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003171/0.3887, allocations: 2.326 MB / 485.6 MB, free: 1.441 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.3888, allocations: 7.938 kB / 485.7 MB, free: 1.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.006171/0.395, allocations: 3.282 MB / 488.9 MB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.586e-05/0.395, allocations: 8 kB / 488.9 MB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.954e-05/0.3951, allocations: 16 kB / 489 MB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002463/0.3975, allocations: 0.8526 MB / 489.8 MB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/0.3988, allocations: 343.4 kB / 490.2 MB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/0.4171, allocations: 20.59 MB / 0.4988 GB, free: 6.703 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.419, allocations: 91.92 kB / 0.4989 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002907/0.4193, allocations: 79.98 kB / 0.4989 GB, free: 6.535 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator3.y[3],booleanReplicator2.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(2,9,100.0%), (1,6,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (1,3,100.0%), (1,4,100.0%), (2,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00189/0.4212, allocations: 0.9383 MB / 0.4998 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005889/0.4218, allocations: 234.5 kB / 0.5001 GB, free: 5.355 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004505/0.4263, allocations: 2.629 MB / 0.5026 GB, free: 2.66 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.266e-05/0.4264, allocations: 12 kB / 0.5026 GB, free: 2.648 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.067e-05/0.4264, allocations: 12 kB / 0.5027 GB, free: 2.637 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4264, allocations: 7.969 kB / 0.5027 GB, free: 2.629 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01011/0.4365, allocations: 5.871 MB / 0.5084 GB, free: 12.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.428e-05/0.4366, allocations: 11.97 kB / 0.5084 GB, free: 12.57 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.4373, allocations: 195.7 kB / 0.5086 GB, free: 12.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001794/0.4392, allocations: 0.7231 MB / 0.5093 GB, free: 11.62 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001/0.4393, allocations: 43.92 kB / 0.5093 GB, free: 11.58 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01531/0.4546, allocations: 18.16 MB / 0.5271 GB, free: 8.023 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/0.4546, allocations: 7.938 kB / 0.5271 GB, free: 8.016 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006428/0.4611, allocations: 3.808 MB / 0.5308 GB, free: 4.09 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001547/0.4626, allocations: 495.5 kB / 0.5313 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005953/0.4633, allocations: 36 kB / 0.5313 GB, free: 3.551 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/0.4647, allocations: 103.9 kB / 0.5314 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003923/0.4651, allocations: 145 kB / 0.5316 GB, free: 3.309 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/0.4652, allocations: 43.98 kB / 0.5316 GB, free: 3.266 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002758/0.468, allocations: 1.404 MB / 0.533 GB, free: 1.84 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.468, allocations: 4 kB / 0.533 GB, free: 1.836 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003321/0.4713, allocations: 0.6563 MB / 0.5336 GB, free: 1.18 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 10 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,100.0%), (1,3,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.2368/0.7081, allocations: 4.468 MB / 0.538 GB, free: 127 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004113/0.7123, allocations: 3.449 MB / 0.5413 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.205e-06/0.7123, allocations: 0 / 0.5413 GB, free: 125.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002075/0.7144, allocations: 2.22 MB / 0.5435 GB, free: 124.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003116/0.7175, allocations: 0.6761 MB / 0.5442 GB, free: 124 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02767/0.7452, allocations: 22.62 MB / 0.5663 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001505/0.7468, allocations: 2.284 MB / 0.5685 GB, free: 104.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.00131/0.7481, allocations: 0.4942 MB / 0.569 GB, free: 104.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009769/0.7491, allocations: 1.081 MB / 0.57 GB, free: 103.3 MB / 462.1 MB Notification: Performance of SimCode: time 1.132e-06/0.7491, allocations: 0 / 0.57 GB, free: 103.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1106/0.8598, allocations: 59.66 MB / 0.6283 GB, free: 44.41 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.9/14.75, allocations: 14.25 kB / 0.6283 GB, free: 44.4 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_ResistiveBraking/SMPM_ResistiveBraking.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches