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.001549/0.001549, allocations: 101.4 kB / 16.5 MB, free: 6.695 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.001887/0.001887, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 46.73 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07873/0.07977, allocations: 49.45 MB / 349.5 MB, free: 4.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01128/0.09108, allocations: 10.82 MB / 360.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005801/0.0969, allocations: 3.583 MB / 363.9 MB, free: 6.281 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.09825, allocations: 67.62 kB / 364 MB, free: 6.215 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001917/0.1002, allocations: 0.7148 MB / 364.7 MB, free: 5.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.1026, allocations: 0.7732 MB / 365.5 MB, free: 4.719 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001062/0.1037, allocations: 403.6 kB / 365.9 MB, free: 4.324 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003453/0.1071, allocations: 3.251 MB / 369.1 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1413/0.2484, allocations: 2.303 MB / 371.4 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.2513, allocations: 1.21 MB / 372.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002973/0.2543, allocations: 1.687 MB / 374.3 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005321/0.2549, allocations: 232.4 kB / 374.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009297/0.2558, allocations: 344.5 kB / 374.9 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009099/0.2567, allocations: 0.9237 MB / 375.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001411/0.2581, allocations: 1.526 MB / 377.3 MB, free: 9.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003944/0.2621, allocations: 4.709 MB / 382 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2621, allocations: 5.5 kB / 382 MB, free: 9.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.2621, allocations: 0 / 382 MB, free: 9.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.21e-05/0.2622, allocations: 0 / 382 MB, free: 9.09 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.005735/0.2679, allocations: 3.386 MB / 385.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.268, allocations: 9.469 kB / 385.4 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004127/0.2684, allocations: 369.5 kB / 385.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007622/0.2692, allocations: 335 kB / 386.1 MB, free: 7.062 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002457/0.2716, allocations: 1.768 MB / 387.9 MB, free: 5.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.2718, allocations: 197 kB / 388.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003474/0.2722, allocations: 254.2 kB / 388.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004556/0.2767, allocations: 3.283 MB / 391.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.764e-05/0.2768, allocations: 5.375 kB / 391.6 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002252/0.277, allocations: 100.6 kB / 391.7 MB, free: 3.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001138/0.2771, allocations: 130.1 kB / 391.9 MB, free: 3.676 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004193/0.2813, allocations: 2.75 MB / 394.6 MB, free: 2.281 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01317/0.2945, allocations: 10.48 MB / 405.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001771/0.2963, allocations: 1.356 MB / 406.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001206/0.2975, allocations: 0.7852 MB / 407.2 MB, free: 7.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002739/0.2978, allocations: 215 kB / 407.4 MB, free: 7.648 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.091e-05/0.2979, allocations: 39.56 kB / 407.5 MB, free: 7.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 2.405e-06/0.2979, allocations: 0 / 407.5 MB, free: 7.602 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01403/0.3119, allocations: 6.901 MB / 414.4 MB, free: 0.6211 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.312, allocations: 64.41 kB / 414.4 MB, free: 0.543 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002339/0.3143, allocations: 1.789 MB / 416.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.674e-05/0.3144, allocations: 45.7 kB / 416.3 MB, free: 14.7 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008315/0.3152, allocations: 1.267 MB / 417.5 MB, free: 13.42 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003437/0.3156, allocations: 435 kB / 418 MB, free: 13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004694/0.3161, allocations: 295.2 kB / 418.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.649e-05/0.3162, allocations: 311.4 kB / 418.6 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001145/0.3173, allocations: 0.7758 MB / 419.3 MB, free: 11.63 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.3188, allocations: 1.293 MB / 420.6 MB, free: 10.11 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00272/0.3215, allocations: 2.209 MB / 422.8 MB, free: 7.738 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.314e-06/0.3215, allocations: 4 kB / 422.8 MB, free: 7.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003754/0.3253, allocations: 2.473 MB / 425.3 MB, free: 5.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.3253, allocations: 12 kB / 425.3 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.137e-05/0.3254, allocations: 24.03 kB / 425.3 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006184/0.326, allocations: 237.9 kB / 425.6 MB, free: 5.062 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00142/0.3274, allocations: 419.5 kB / 426 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.3299, allocations: 2.999 MB / 429 MB, free: 1.43 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/0.3312, allocations: 131.7 kB / 429.1 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001267/0.3314, allocations: 71.98 kB / 429.2 MB, free: 1.23 MB / 334.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.001423/0.3328, allocations: 0.816 MB / 430 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002892/0.3331, allocations: 185.7 kB / 430.2 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00326/0.3363, allocations: 2.046 MB / 432.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.135e-05/0.3364, allocations: 12 kB / 432.2 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.3364, allocations: 4 kB / 432.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.102e-05/0.3364, allocations: 3.984 kB / 432.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007179/0.3436, allocations: 4.753 MB / 437 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-05/0.3436, allocations: 8.031 kB / 437 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/0.3447, allocations: 264.9 kB / 437.3 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005693/0.3453, allocations: 199.3 kB / 437.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.056e-05/0.3454, allocations: 27.98 kB / 437.5 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002493/0.3479, allocations: 2.977 MB / 440.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3479, allocations: 4.031 kB / 440.5 MB, free: 5.652 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004379/0.3523, allocations: 3.133 MB / 443.6 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007702/0.353, allocations: 426.6 kB / 444 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002358/0.3533, allocations: 31.92 kB / 444.1 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009028/0.3542, allocations: 95.94 kB / 444.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000169/0.3544, allocations: 72.89 kB / 444.2 MB, free: 1.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.878e-05/0.3545, allocations: 43.86 kB / 444.3 MB, free: 1.793 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001784/0.3563, allocations: 1.223 MB / 445.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3563, allocations: 0 / 445.5 MB, free: 0.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001533/0.3578, allocations: 492 kB / 446 MB, free: 104 kB / 350.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.004828/0.3626, allocations: 3.774 MB / 449.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003346/0.366, allocations: 2.343 MB / 452.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.366, allocations: 1.938 kB / 452.1 MB, free: 9.926 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00173/0.3678, allocations: 1.338 MB / 453.4 MB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.3698, allocations: 469.7 kB / 453.9 MB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03152/0.4014, allocations: 21.73 MB / 475.6 MB, free: 0.8125 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001601/0.403, allocations: 2.014 MB / 477.6 MB, free: 14.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001543/0.4046, allocations: 499.9 kB / 478.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001308/0.4059, allocations: 1.011 MB / 479.1 MB, free: 13.26 MB / 398.1 MB Notification: Performance of SimCode: time 6.72e-07/0.4059, allocations: 0 / 479.1 MB, free: 13.26 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06747/0.4734, allocations: 43.94 MB / 0.5108 GB, free: 1.832 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.4736, allocations: 250.7 kB / 0.511 GB, free: 1.582 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/3.347, allocations: 0 / 0.511 GB, free: 1.582 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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