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.001183/0.001182, allocations: 104 kB / 16.92 MB, free: 5.793 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.001333/0.001333, allocations: 191.3 kB / 17.85 MB, free: 5.188 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.319/1.319, allocations: 222.9 MB / 241.6 MB, free: 15.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00103/0.00103, allocations: 46.88 kB / 300.7 MB, free: 5.727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08659/0.08764, allocations: 49.45 MB / 350.2 MB, free: 4.266 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01249/0.1002, allocations: 10.92 MB / 361.1 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006856/0.1071, allocations: 3.621 MB / 364.7 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001531/0.1086, allocations: 63.75 kB / 364.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.1108, allocations: 0.815 MB / 365.6 MB, free: 4.777 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002333/0.1132, allocations: 0.8541 MB / 366.4 MB, free: 3.918 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008817/0.1141, allocations: 455.3 kB / 366.9 MB, free: 3.473 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002692/0.1168, allocations: 2.916 MB / 369.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.15/0.2668, allocations: 2.73 MB / 372.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001939/0.2688, allocations: 1.364 MB / 373.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.2709, allocations: 1.756 MB / 375.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005888/0.2715, allocations: 372.7 kB / 376 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009647/0.2725, allocations: 473.1 kB / 376.5 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0012/0.2737, allocations: 1.074 MB / 377.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001595/0.2753, allocations: 1.672 MB / 379.2 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004445/0.2798, allocations: 4.815 MB / 384 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2798, allocations: 4 kB / 384 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2798, allocations: 0 / 384 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.768e-05/0.2799, allocations: 3.328 kB / 384 MB, free: 8.512 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.0061/0.286, allocations: 3.385 MB / 387.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.286, allocations: 10.59 kB / 387.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004021/0.2864, allocations: 365.7 kB / 387.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007876/0.2872, allocations: 342.8 kB / 388.1 MB, free: 6.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002578/0.2898, allocations: 1.767 MB / 389.9 MB, free: 5 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001274/0.29, allocations: 193.8 kB / 390.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.2903, allocations: 256.3 kB / 390.3 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00452/0.2949, allocations: 3.284 MB / 393.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.812e-05/0.2949, allocations: 2.469 kB / 393.6 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002234/0.2952, allocations: 105.4 kB / 393.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000116/0.2953, allocations: 129.6 kB / 393.9 MB, free: 2.781 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003846/0.2991, allocations: 2.748 MB / 396.6 MB, free: 1.391 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01415/0.3133, allocations: 10.49 MB / 407.1 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001766/0.3151, allocations: 1.358 MB / 408.5 MB, free: 6.727 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001189/0.3163, allocations: 0.7883 MB / 409.2 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002792/0.3166, allocations: 203.2 kB / 409.4 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.3166, allocations: 43.56 kB / 409.5 MB, free: 5.656 MB / 318.1 MB Notification: Performance of pre-optimization done (n=98): time 5.851e-06/0.3166, allocations: 3.984 kB / 409.5 MB, free: 5.652 MB / 318.1 MB Notification: Performance of matching and sorting (n=123): time 0.01458/0.3312, allocations: 6.897 MB / 416.4 MB, free: 14.67 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.3313, allocations: 72.39 kB / 416.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002418/0.3337, allocations: 1.789 MB / 418.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.898e-05/0.3338, allocations: 49.64 kB / 418.3 MB, free: 12.74 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008176/0.3347, allocations: 1.27 MB / 419.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003123/0.335, allocations: 432.1 kB / 420 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004504/0.3354, allocations: 295.2 kB / 420.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.428e-05/0.3355, allocations: 311.7 kB / 420.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.3367, allocations: 0.7769 MB / 421.4 MB, free: 9.664 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001424/0.3381, allocations: 1.285 MB / 422.6 MB, free: 8.152 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002674/0.3408, allocations: 2.209 MB / 424.9 MB, free: 5.781 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.756e-06/0.3408, allocations: 8 kB / 424.9 MB, free: 5.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003736/0.3446, allocations: 2.473 MB / 427.3 MB, free: 3.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.353e-05/0.3446, allocations: 12 kB / 427.3 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.926e-05/0.3446, allocations: 16 kB / 427.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005991/0.3452, allocations: 246.1 kB / 427.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/0.3467, allocations: 419.4 kB / 428 MB, free: 2.715 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002489/0.3492, allocations: 3.235 MB / 431.2 MB, free: 15.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001342/0.3506, allocations: 131.8 kB / 431.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/0.3507, allocations: 70.62 kB / 431.4 MB, free: 15.03 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.001278/0.352, allocations: 0.8213 MB / 432.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003085/0.3523, allocations: 181.8 kB / 432.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003225/0.3555, allocations: 2.049 MB / 434.5 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.3556, allocations: 12 kB / 434.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.3556, allocations: 0 / 434.5 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.31e-05/0.3556, allocations: 7.969 kB / 434.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007086/0.3627, allocations: 4.752 MB / 439.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.803e-06/0.3627, allocations: 7.938 kB / 439.3 MB, free: 7.148 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001082/0.3638, allocations: 267 kB / 439.5 MB, free: 6.902 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005306/0.3643, allocations: 207.5 kB / 439.7 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.576e-05/0.3644, allocations: 24 kB / 439.8 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.3668, allocations: 3.213 MB / 443 MB, free: 3.188 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/0.3668, allocations: 7.469 kB / 443 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004249/0.3711, allocations: 3.133 MB / 446.1 MB, free: 0 / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007497/0.3718, allocations: 426.7 kB / 446.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002404/0.3721, allocations: 24 kB / 446.5 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009609/0.373, allocations: 99.8 kB / 446.6 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001665/0.3732, allocations: 80.45 kB / 446.7 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.128e-05/0.3733, allocations: 32 kB / 446.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001717/0.375, allocations: 1.224 MB / 448 MB, free: 14.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.375, allocations: 0 / 448 MB, free: 14.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001507/0.3766, allocations: 496 kB / 448.5 MB, free: 13.63 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.004696/0.3813, allocations: 3.763 MB / 452.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004991/0.3863, allocations: 2.991 MB / 455.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3863, allocations: 64 / 455.2 MB, free: 6.828 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.388, allocations: 1.345 MB / 456.6 MB, free: 5.441 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.3904, allocations: 498.5 kB / 457.1 MB, free: 4.969 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02716/0.4176, allocations: 20.7 MB / 477.7 MB, free: 14.72 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001628/0.4193, allocations: 2.014 MB / 479.8 MB, free: 12.68 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001432/0.4207, allocations: 0.496 MB / 480.3 MB, free: 12.18 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/0.422, allocations: 1.011 MB / 481.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.422, allocations: 0 / 481.3 MB, free: 11.16 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1062/0.5282, allocations: 45 MB / 0.5139 GB, free: 14.66 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.24/13.77, allocations: 12.25 kB / 0.5139 GB, free: 14.65 MB / 446.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