Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_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.00138/0.00138, allocations: 102.9 kB / 17.58 MB, free: 5.414 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.001484/0.001484, allocations: 191.9 kB / 18.51 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.336/1.336, allocations: 205.1 MB / 224.4 MB, free: 12.29 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 52.14 kB / 280.8 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07871/0.0799, allocations: 46.64 MB / 327.4 MB, free: 4.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01513/0.09506, allocations: 15.12 MB / 342.5 MB, free: 5.164 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009058/0.1042, allocations: 5.105 MB / 347.6 MB, free: 44 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002458/0.1066, allocations: 87.67 kB / 347.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.1093, allocations: 1.06 MB / 348.8 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004388/0.1137, allocations: 1.262 MB / 350 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002114/0.1158, allocations: 0.904 MB / 350.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003926/0.1198, allocations: 3.6 MB / 354.5 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003366/0.1231, allocations: 3.258 MB / 357.8 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002163/0.1253, allocations: 1.713 MB / 359.5 MB, free: 4.055 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002582/0.1279, allocations: 2.039 MB / 361.5 MB, free: 2.008 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006439/0.1286, allocations: 483.9 kB / 362 MB, free: 1.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001279/0.1299, allocations: 0.6911 MB / 362.7 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009262/0.1308, allocations: 1.141 MB / 363.8 MB, free: 15.7 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002135/0.1329, allocations: 2.034 MB / 365.9 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005674/0.1386, allocations: 6.192 MB / 372.1 MB, free: 7.445 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1386, allocations: 0 / 372.1 MB, free: 7.445 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1387, allocations: 0 / 372.1 MB, free: 7.445 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001053/0.1388, allocations: 4 kB / 372.1 MB, free: 7.441 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009511/0.1483, allocations: 4.23 MB / 376.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.938e-05/0.1484, allocations: 12.03 kB / 376.3 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000623/0.149, allocations: 447.3 kB / 376.8 MB, free: 2.676 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002691/0.1517, allocations: 0.625 MB / 377.4 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1426/0.2943, allocations: 2.116 MB / 379.5 MB, free: 49.22 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003094/0.2946, allocations: 248.8 kB / 379.7 MB, free: 49.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009572/0.2956, allocations: 307.5 kB / 380 MB, free: 49.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008372/0.304, allocations: 4.044 MB / 384.1 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.022e-05/0.3041, allocations: 5.234 kB / 384.1 MB, free: 47.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002983/0.3044, allocations: 126.5 kB / 384.2 MB, free: 47.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001914/0.3046, allocations: 143.4 kB / 384.3 MB, free: 47.85 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006949/0.3115, allocations: 3.376 MB / 387.7 MB, free: 46.58 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0197/0.3313, allocations: 13.34 MB / 401.1 MB, free: 37.8 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003223/0.3345, allocations: 3.958 MB / 405 MB, free: 34.16 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.3359, allocations: 1.004 MB / 406 MB, free: 33.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003629/0.3395, allocations: 2.656 MB / 408.7 MB, free: 31.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3396, allocations: 46.62 kB / 408.7 MB, free: 31.63 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.354e-06/0.3396, allocations: 6.844 kB / 408.7 MB, free: 31.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009355/0.3489, allocations: 6.012 MB / 414.7 MB, free: 25.66 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.696e-05/0.349, allocations: 68.66 kB / 414.8 MB, free: 25.58 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002149/0.3511, allocations: 1.885 MB / 416.7 MB, free: 23.65 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.435e-05/0.3512, allocations: 49.7 kB / 416.7 MB, free: 23.6 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006211/0.3518, allocations: 1.504 MB / 418.3 MB, free: 22.08 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.3521, allocations: 492.2 kB / 418.7 MB, free: 21.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004027/0.3525, allocations: 336.9 kB / 419.1 MB, free: 21.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.548e-05/0.3526, allocations: 301.1 kB / 419.4 MB, free: 20.98 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009802/0.3536, allocations: 0.7691 MB / 420.1 MB, free: 20.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.3548, allocations: 1.375 MB / 421.5 MB, free: 18.56 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.357, allocations: 2.314 MB / 423.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.357, allocations: 4 kB / 423.8 MB, free: 15.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003224/0.3602, allocations: 2.477 MB / 426.3 MB, free: 13.48 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.673e-05/0.3603, allocations: 16 kB / 426.3 MB, free: 13.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.371e-05/0.3603, allocations: 20 kB / 426.3 MB, free: 13.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003181/0.3606, allocations: 118.9 kB / 426.4 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.3623, allocations: 495.2 kB / 426.9 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008095/0.3631, allocations: 1.413 MB / 428.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001465/0.3646, allocations: 111.8 kB / 428.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/0.3647, allocations: 80 kB / 428.5 MB, free: 11.1 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001673/0.3664, allocations: 0.9812 MB / 429.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/0.3667, allocations: 205.6 kB / 429.7 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002635/0.3694, allocations: 1.965 MB / 431.7 MB, free: 7.922 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/0.3694, allocations: 12 kB / 431.7 MB, free: 7.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.3694, allocations: 4 kB / 431.7 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.174e-05/0.3694, allocations: 7.969 kB / 431.7 MB, free: 7.898 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006368/0.3758, allocations: 4.988 MB / 436.7 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.3758, allocations: 4 kB / 436.7 MB, free: 2.832 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/0.377, allocations: 315.5 kB / 437 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002484/0.3773, allocations: 98.77 kB / 437.1 MB, free: 2.418 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.762e-05/0.3774, allocations: 32 kB / 437.1 MB, free: 2.387 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006459/0.378, allocations: 1.375 MB / 438.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.378, allocations: 7.938 kB / 438.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00408/0.3821, allocations: 3.085 MB / 441.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000777/0.3829, allocations: 454.5 kB / 442 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002431/0.3832, allocations: 24 kB / 442.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009574/0.3841, allocations: 83.84 kB / 442.1 MB, free: 13.15 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001636/0.3843, allocations: 89.19 kB / 442.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.392e-05/0.3844, allocations: 43.98 kB / 442.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001838/0.3862, allocations: 1.281 MB / 443.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.3863, allocations: 0 / 443.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0022/0.3885, allocations: 0.5295 MB / 444.1 MB, free: 11.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.004975/0.3935, allocations: 3.704 MB / 447.8 MB, free: 7.426 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.005681/0.3992, allocations: 2.833 MB / 450.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/0.3992, allocations: 0 / 450.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.4007, allocations: 1.178 MB / 451.8 MB, free: 3.328 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002542/0.4032, allocations: 0.5122 MB / 452.3 MB, free: 2.816 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03584/0.4391, allocations: 22.33 MB / 474.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003075/0.4422, allocations: 2.251 MB / 476.9 MB, free: 8.27 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002332/0.4446, allocations: 0.5132 MB / 477.4 MB, free: 7.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002216/0.4468, allocations: 1.183 MB / 478.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of SimCode: time 1.363e-06/0.4468, allocations: 0 / 478.6 MB, free: 6.57 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1198/0.5666, allocations: 48.41 MB / 0.5147 GB, free: 6.016 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.35/10.92, allocations: 20.23 kB / 0.5147 GB, free: 5.996 MB / 414.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches