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.001075/0.001075, allocations: 121.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.00125, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.89 kB / 358.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2341/0.2354, allocations: 50.55 MB / 408.8 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01172/0.2471, allocations: 10.95 MB / 419.7 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006829/0.254, allocations: 3.665 MB / 423.4 MB, free: 2.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001775/0.2558, allocations: 71.69 kB / 423.5 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002263/0.2581, allocations: 0.8765 MB / 424.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002951/0.2611, allocations: 0.9048 MB / 425.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.2624, allocations: 463.3 kB / 425.7 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003768/0.2662, allocations: 2.946 MB / 428.6 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003439/0.2697, allocations: 2.727 MB / 431.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002016/0.2717, allocations: 1.394 MB / 432.8 MB, free: 9.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002441/0.2742, allocations: 1.751 MB / 434.5 MB, free: 7.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005715/0.2748, allocations: 375.9 kB / 434.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009207/0.2757, allocations: 487.8 kB / 435.4 MB, free: 6.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009821/0.2767, allocations: 1.071 MB / 436.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001799/0.2785, allocations: 1.664 MB / 438.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005101/0.2836, allocations: 4.912 MB / 443 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.999e-06/0.2836, allocations: 0 / 443 MB, free: 15.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.048e-06/0.2837, allocations: 4 kB / 443 MB, free: 15.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001117/0.2838, allocations: 3.938 kB / 443 MB, free: 15.09 MB / 366.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.006789/0.2906, allocations: 3.477 MB / 446.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.2906, allocations: 16.03 kB / 446.5 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004288/0.2911, allocations: 363 kB / 446.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008902/0.292, allocations: 366.8 kB / 447.2 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002918/0.2949, allocations: 1.836 MB / 449.1 MB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001411/0.2951, allocations: 189.2 kB / 449.2 MB, free: 8.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003489/0.2954, allocations: 267.9 kB / 449.5 MB, free: 8.461 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004922/0.3003, allocations: 3.271 MB / 452.8 MB, free: 5.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.241e-05/0.3004, allocations: 11.94 kB / 452.8 MB, free: 5.098 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002082/0.3006, allocations: 100 kB / 452.9 MB, free: 5 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001166/0.3008, allocations: 124.9 kB / 453 MB, free: 4.875 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00435/0.3051, allocations: 2.752 MB / 455.8 MB, free: 2.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01469/0.3198, allocations: 10.4 MB / 466.2 MB, free: 7.348 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001827/0.3217, allocations: 1.373 MB / 467.5 MB, free: 5.906 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001158/0.3229, allocations: 0.7579 MB / 468.3 MB, free: 5.145 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002848/0.3232, allocations: 204.2 kB / 468.5 MB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3232, allocations: 51.56 kB / 468.5 MB, free: 4.852 MB / 382.1 MB Notification: Performance of pre-optimization done (n=98): time 2.786e-06/0.3232, allocations: 0 / 468.5 MB, free: 4.852 MB / 382.1 MB Notification: Performance of matching and sorting (n=123): time 0.01436/0.3376, allocations: 6.942 MB / 475.5 MB, free: 13.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.3377, allocations: 64.41 kB / 475.5 MB, free: 13.72 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002767/0.3405, allocations: 1.794 MB / 477.3 MB, free: 11.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000107/0.3406, allocations: 45.7 kB / 477.4 MB, free: 11.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009189/0.3415, allocations: 1.31 MB / 478.7 MB, free: 10.55 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003642/0.3419, allocations: 456.1 kB / 479.1 MB, free: 10.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004844/0.3424, allocations: 291.5 kB / 479.4 MB, free: 9.812 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3425, allocations: 305.1 kB / 479.7 MB, free: 9.512 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001214/0.3437, allocations: 0.773 MB / 480.5 MB, free: 8.738 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001527/0.3452, allocations: 1.292 MB / 481.8 MB, free: 7.223 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002896/0.3482, allocations: 2.21 MB / 484 MB, free: 4.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.295e-05/0.3482, allocations: 4 kB / 484 MB, free: 4.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004103/0.3523, allocations: 2.487 MB / 486.5 MB, free: 2.27 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.967e-05/0.3523, allocations: 16.03 kB / 486.5 MB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.829e-05/0.3524, allocations: 19.94 kB / 486.5 MB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006328/0.353, allocations: 243.2 kB / 486.8 MB, free: 1.984 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001488/0.3545, allocations: 419.3 kB / 487.2 MB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002823/0.3574, allocations: 3.234 MB / 490.4 MB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001476/0.3589, allocations: 131.8 kB / 490.5 MB, free: 13.92 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001849/0.3591, allocations: 75.92 kB / 490.6 MB, free: 13.84 MB / 414.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.001396/0.3605, allocations: 0.8213 MB / 491.4 MB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004535/0.3609, allocations: 198.7 kB / 491.6 MB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003553/0.3645, allocations: 2.043 MB / 493.7 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.3645, allocations: 12 kB / 493.7 MB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.795e-06/0.3645, allocations: 0 / 493.7 MB, free: 10.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.295e-05/0.3645, allocations: 7.969 kB / 493.7 MB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008062/0.3726, allocations: 4.745 MB / 498.4 MB, free: 5.891 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.064e-05/0.3727, allocations: 4 kB / 498.4 MB, free: 5.887 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001095/0.3738, allocations: 263.9 kB / 498.7 MB, free: 5.629 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005414/0.3743, allocations: 207.2 kB / 498.9 MB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.77e-05/0.3744, allocations: 24 kB / 498.9 MB, free: 5.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002549/0.377, allocations: 3.215 MB / 0.4904 GB, free: 1.895 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.377, allocations: 7.969 kB / 0.4904 GB, free: 1.887 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00456/0.3816, allocations: 3.14 MB / 0.4934 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009366/0.3825, allocations: 435.8 kB / 0.4938 GB, free: 14.24 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004281/0.383, allocations: 27.94 kB / 0.4939 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.3841, allocations: 99.92 kB / 0.494 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002296/0.3844, allocations: 76.89 kB / 0.494 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.033e-05/0.3845, allocations: 32 kB / 0.4941 GB, free: 14.01 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.3866, allocations: 1.228 MB / 0.4953 GB, free: 12.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.794e-06/0.3866, allocations: 0 / 0.4953 GB, free: 12.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001765/0.3884, allocations: 495.9 kB / 0.4957 GB, free: 12.31 MB / 430.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.005188/0.3936, allocations: 3.78 MB / 0.4994 GB, free: 8.461 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.3975, allocations: 2.35 MB / 0.5017 GB, free: 6.043 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.3975, allocations: 0 / 0.5017 GB, free: 6.043 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.3993, allocations: 1.339 MB / 0.503 GB, free: 4.633 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.4019, allocations: 0.4919 MB / 0.5035 GB, free: 4.152 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02835/0.4303, allocations: 18.81 MB / 0.5219 GB, free: 0.6094 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002051/0.4324, allocations: 2.006 MB / 0.5238 GB, free: 14.56 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0014/0.4338, allocations: 0.496 MB / 0.5243 GB, free: 14.06 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.4352, allocations: 1.015 MB / 0.5253 GB, free: 13.05 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4352, allocations: 4 kB / 0.5253 GB, free: 13.04 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2632/0.6984, allocations: 46.08 MB / 0.5703 GB, free: 105.8 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.43, allocations: 13.14 kB / 0.5703 GB, free: 105.8 MB / 462.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