Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001325/0.001325, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.173/1.173, allocations: 226.5 MB / 244.7 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007915/0.0007915, allocations: 101.4 kB / 296.7 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002111/0.0002112, allocations: 11.94 kB / 356.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1905, allocations: 51.29 MB / 408.2 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.02681/0.2174, allocations: 36.68 MB / 444.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02013/0.2375, allocations: 10.36 MB / 455.2 MB, free: 12.47 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007263/0.2448, allocations: 291 kB / 455.5 MB, free: 12.19 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006497/0.2514, allocations: 1.775 MB / 457.3 MB, free: 10.4 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01338/0.2648, allocations: 2.959 MB / 460.2 MB, free: 7.434 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007099/0.2719, allocations: 1.574 MB / 461.8 MB, free: 5.867 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02324/0.2951, allocations: 14.41 MB / 476.2 MB, free: 7.414 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0392/0.3344, allocations: 23.89 MB / 0.4884 GB, free: 15.39 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006998/0.3414, allocations: 4.921 MB / 0.4932 GB, free: 10.45 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008334/0.3497, allocations: 5.833 MB / 0.4989 GB, free: 4.598 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002507/0.3522, allocations: 0.7812 MB / 0.4996 GB, free: 3.816 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004679/0.3569, allocations: 1.175 MB / 0.5008 GB, free: 2.641 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002188/0.3591, allocations: 2.511 MB / 0.5032 GB, free: 124 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.1984/0.5575, allocations: 5.894 MB / 0.509 GB, free: 27.47 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02092/0.5785, allocations: 22.18 MB / 0.5307 GB, free: 19.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.5785, allocations: 1.031 kB / 0.5307 GB, free: 19.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.5785, allocations: 5 kB / 0.5307 GB, free: 19.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0008635/0.5794, allocations: 0 / 0.5307 GB, free: 19.43 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.03373/0.6131, allocations: 12.81 MB / 0.5432 GB, free: 12.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.6132, allocations: 8.969 kB / 0.5432 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005913/0.6191, allocations: 1.753 MB / 0.5449 GB, free: 12.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03052/0.6497, allocations: 6.23 MB / 0.551 GB, free: 10.07 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01557/0.6653, allocations: 8.026 MB / 0.5588 GB, free: 7.809 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007065/0.666, allocations: 0.9429 MB / 0.5597 GB, free: 7.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004388/0.6704, allocations: 1.228 MB / 0.5609 GB, free: 6.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0444/0.7148, allocations: 18.92 MB / 0.5794 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006249/0.7155, allocations: 22.92 kB / 0.5794 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003875/0.7194, allocations: 0.5075 MB / 0.5799 GB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007502/0.7202, allocations: 0.6535 MB / 0.5806 GB, free: 10.08 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03803/0.7582, allocations: 16.93 MB / 0.5971 GB, free: 10.62 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1049/0.8631, allocations: 61.58 MB / 0.6572 GB, free: 12.41 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2139/1.077, allocations: 33.43 MB / 0.6899 GB, free: 157.5 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006529/1.084, allocations: 3.836 MB / 0.6936 GB, free: 157.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01366/1.097, allocations: 9.129 MB / 0.7025 GB, free: 154.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/1.097, allocations: 68.84 kB / 0.7026 GB, free: 154.5 MB / 490.7 MB Notification: Performance of pre-optimization done (n=361): time 5.811e-06/1.097, allocations: 0 / 0.7026 GB, free: 154.5 MB / 490.7 MB Notification: Performance of matching and sorting (n=403): time 0.0295/1.127, allocations: 17.75 MB / 0.7199 GB, free: 147 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/1.127, allocations: 96.92 kB / 0.72 GB, free: 146.9 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006458/1.133, allocations: 5.215 MB / 0.7251 GB, free: 145 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003975/1.134, allocations: 90.12 kB / 0.7252 GB, free: 144.9 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002325/1.136, allocations: 5.615 MB / 0.7307 GB, free: 140.7 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009265/1.137, allocations: 1.413 MB / 0.7321 GB, free: 139.6 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/1.137, allocations: 141.1 kB / 0.7322 GB, free: 139.5 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002813/1.138, allocations: 0.5732 MB / 0.7328 GB, free: 139.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003627/1.141, allocations: 2.949 MB / 0.7356 GB, free: 136.7 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00478/1.146, allocations: 5.99 MB / 0.7415 GB, free: 129.8 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009376/1.156, allocations: 9.623 MB / 0.7509 GB, free: 119.4 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.346e-05/1.156, allocations: 32 kB / 0.7509 GB, free: 119.4 MB / 490.7 MB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01432/1.17, allocations: 10.03 MB / 0.7607 GB, free: 110.5 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.016e-05/1.17, allocations: 52.75 kB / 0.7608 GB, free: 110.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001323/1.17, allocations: 105.2 kB / 0.7609 GB, free: 110.3 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/1.172, allocations: 0.945 MB / 0.7618 GB, free: 109.4 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005148/1.178, allocations: 1.622 MB / 0.7634 GB, free: 107.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008857/1.186, allocations: 9.509 MB / 0.7727 GB, free: 97.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004966/1.191, allocations: 407.1 kB / 0.7731 GB, free: 97.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00055/1.192, allocations: 368 kB / 0.7734 GB, free: 97.09 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005694/1.198, allocations: 4.305 MB / 0.7776 GB, free: 92.77 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008766/1.199, allocations: 0.5415 MB / 0.7781 GB, free: 92.22 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008745/1.207, allocations: 6.66 MB / 0.7846 GB, free: 85.52 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/1.207, allocations: 40 kB / 0.7847 GB, free: 85.48 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/1.207, allocations: 8 kB / 0.7847 GB, free: 85.47 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.91e-05/1.207, allocations: 23.92 kB / 0.7847 GB, free: 85.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02091/1.228, allocations: 16.22 MB / 0.8006 GB, free: 69.19 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/1.228, allocations: 4.5 kB / 0.8006 GB, free: 69.19 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002837/1.231, allocations: 0.7723 MB / 0.8013 GB, free: 68.41 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/1.233, allocations: 0.7845 MB / 0.8021 GB, free: 67.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/1.233, allocations: 95.91 kB / 0.8022 GB, free: 67.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007357/1.241, allocations: 8.663 MB / 0.8106 GB, free: 58.46 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.025e-06/1.241, allocations: 4 kB / 0.8106 GB, free: 58.46 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01094/1.252, allocations: 9.763 MB / 0.8202 GB, free: 48.57 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001783/1.253, allocations: 1.107 MB / 0.8212 GB, free: 47.44 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005266/1.254, allocations: 76 kB / 0.8213 GB, free: 47.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002112/1.256, allocations: 231.8 kB / 0.8215 GB, free: 47.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006143/1.257, allocations: 274.8 kB / 0.8218 GB, free: 46.87 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002259/1.257, allocations: 116 kB / 0.8219 GB, free: 46.76 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004123/1.261, allocations: 3.466 MB / 0.8253 GB, free: 43.31 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.261, allocations: 0 / 0.8253 GB, free: 43.31 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.005696/1.267, allocations: 1.944 MB / 0.8272 GB, free: 41.37 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (384): * Single equations (assignments): 379 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(8,59.4%) 38,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01168/1.278, allocations: 10.51 MB / 0.8375 GB, free: 30.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.009565/1.288, allocations: 7.775 MB / 0.8451 GB, free: 22.9 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/1.288, allocations: 0.875 kB / 0.8451 GB, free: 22.9 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004251/1.292, allocations: 3.639 MB / 0.8486 GB, free: 19.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008288/1.301, allocations: 1.318 MB / 0.8499 GB, free: 17.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2497/1.55, allocations: 61.5 MB / 0.91 GB, free: 141 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009151/1.56, allocations: 7.203 MB / 0.917 GB, free: 135.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005598/1.565, allocations: 4.558 MB / 0.9214 GB, free: 131.2 MB / 490.7 MB Notification: Performance of SimCode: time 9.02e-07/1.565, allocations: 0 / 0.9214 GB, free: 131.2 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 10.62/12.19, allocations: 0.5005 GB / 1.422 GB, free: 143.9 MB / 490.7 MB (rm -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","../files/Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches