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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.008419/0.008419, allocations: 100.4 kB / 21.96 MB, free: 5.211 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 218 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.49/1.49, allocations: 207.7 MB / 236.1 MB, free: 9.793 MB / 190.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001654/0.001654, allocations: 55.92 kB / 348 MB, free: 9.863 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2307/0.2324, allocations: 49.15 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01227/0.2446, allocations: 13.18 MB / 410.3 MB, free: 200 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2547, allocations: 4.855 MB / 415.2 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002834/0.2576, allocations: 111.4 kB / 415.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003216/0.2608, allocations: 1.05 MB / 416.3 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004651/0.2654, allocations: 1.256 MB / 417.6 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002496/0.2679, allocations: 0.8923 MB / 418.5 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005062/0.273, allocations: 3.626 MB / 422.1 MB, free: 8.016 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003583/0.2766, allocations: 1.873 MB / 424 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003069/0.2796, allocations: 1.768 MB / 425.8 MB, free: 5.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004173/0.2838, allocations: 2.087 MB / 427.8 MB, free: 4.273 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.2852, allocations: 480 kB / 428.3 MB, free: 3.805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002863/0.2881, allocations: 0.6716 MB / 429 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001872/0.29, allocations: 1.157 MB / 430.1 MB, free: 1.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002593/0.2926, allocations: 1.622 MB / 431.8 MB, free: 352 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007107/0.2997, allocations: 6.308 MB / 438.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2997, allocations: 0 / 438.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2997, allocations: 0 / 438.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001145/0.2998, allocations: 0 / 438.1 MB, free: 10.02 MB / 350.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.009251/0.309, allocations: 4.252 MB / 442.3 MB, free: 5.703 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.477e-05/0.3091, allocations: 15.92 kB / 442.3 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 8.647e-05/0.3092, allocations: 82.48 kB / 442.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005618/0.3097, allocations: 451.3 kB / 442.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002658/0.3124, allocations: 0.6349 MB / 443.5 MB, free: 4.516 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003663/0.316, allocations: 2.074 MB / 445.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001983/0.3162, allocations: 242.4 kB / 445.8 MB, free: 2.156 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004599/0.3167, allocations: 319.9 kB / 446.1 MB, free: 1.844 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006609/0.3233, allocations: 4.114 MB / 450.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.258e-05/0.3234, allocations: 0 / 450.2 MB, free: 13.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002729/0.3237, allocations: 128 kB / 450.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001455/0.3238, allocations: 146.2 kB / 450.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005527/0.3293, allocations: 3.378 MB / 453.9 MB, free: 9.992 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01794/0.3473, allocations: 11.76 MB / 465.6 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003128/0.3504, allocations: 1.689 MB / 467.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001463/0.3519, allocations: 0.8987 MB / 468.2 MB, free: 11.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003847/0.3557, allocations: 2.123 MB / 470.3 MB, free: 9.129 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/0.3557, allocations: 51.56 kB / 470.4 MB, free: 9.066 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.896e-06/0.3557, allocations: 0 / 470.4 MB, free: 9.066 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01114/0.3669, allocations: 5.812 MB / 476.2 MB, free: 3.211 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.349e-05/0.3669, allocations: 68.72 kB / 476.3 MB, free: 3.133 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002723/0.3697, allocations: 1.893 MB / 478.2 MB, free: 1.195 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.669e-05/0.3698, allocations: 49.69 kB / 478.2 MB, free: 1.141 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00113/0.3709, allocations: 1.544 MB / 479.8 MB, free: 15.58 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004142/0.3713, allocations: 0.5036 MB / 480.3 MB, free: 15.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005069/0.3718, allocations: 339.3 kB / 480.6 MB, free: 14.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.3719, allocations: 305.1 kB / 480.9 MB, free: 14.43 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001178/0.3731, allocations: 0.7691 MB / 481.7 MB, free: 13.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001654/0.3747, allocations: 1.4 MB / 483.1 MB, free: 11.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003028/0.3778, allocations: 2.304 MB / 485.4 MB, free: 9.41 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.507e-05/0.3778, allocations: 12 kB / 485.4 MB, free: 9.398 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004112/0.3819, allocations: 2.482 MB / 487.9 MB, free: 6.898 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.098e-05/0.3819, allocations: 15.94 kB / 487.9 MB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.717e-05/0.382, allocations: 20.78 kB / 487.9 MB, free: 6.863 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003656/0.3823, allocations: 122.5 kB / 488 MB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00177/0.3841, allocations: 491.2 kB / 488.5 MB, free: 6.254 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001191/0.3853, allocations: 1.306 MB / 489.8 MB, free: 4.832 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001485/0.3868, allocations: 107.9 kB / 489.9 MB, free: 4.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.3869, allocations: 87.98 kB / 490 MB, free: 4.641 MB / 398.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.001626/0.3885, allocations: 0.985 MB / 491 MB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003243/0.3889, allocations: 214.7 kB / 491.2 MB, free: 3.434 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003184/0.392, allocations: 1.961 MB / 493.2 MB, free: 1.457 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.722e-05/0.3921, allocations: 16 kB / 493.2 MB, free: 1.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.3921, allocations: 4 kB / 493.2 MB, free: 1.438 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.3921, allocations: 7.969 kB / 493.2 MB, free: 1.43 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007591/0.3997, allocations: 4.643 MB / 497.8 MB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.957e-06/0.3997, allocations: 8.062 kB / 497.8 MB, free: 12.68 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001371/0.4011, allocations: 315.6 kB / 498.1 MB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002963/0.4013, allocations: 98.45 kB / 498.2 MB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-05/0.4014, allocations: 28 kB / 498.3 MB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/0.4025, allocations: 1.275 MB / 499.5 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.4025, allocations: 0 / 499.5 MB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004491/0.4069, allocations: 3.091 MB / 0.4908 GB, free: 7.691 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009547/0.4079, allocations: 382.5 kB / 0.4912 GB, free: 7.316 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002488/0.4082, allocations: 36.2 kB / 0.4912 GB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009165/0.4091, allocations: 79.84 kB / 0.4913 GB, free: 7.203 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.4092, allocations: 93.08 kB / 0.4914 GB, free: 7.113 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.678e-05/0.4093, allocations: 39.98 kB / 0.4914 GB, free: 7.074 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001935/0.4113, allocations: 1.281 MB / 0.4927 GB, free: 5.77 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4113, allocations: 4 kB / 0.4927 GB, free: 5.766 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001603/0.4129, allocations: 0.5273 MB / 0.4932 GB, free: 5.238 MB / 414.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.004936/0.4178, allocations: 3.715 MB / 0.4968 GB, free: 1.461 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00326/0.4211, allocations: 1.968 MB / 0.4988 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4211, allocations: 0 / 0.4988 GB, free: 15.47 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001432/0.4225, allocations: 0.9655 MB / 0.4997 GB, free: 14.49 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00238/0.4249, allocations: 0.5097 MB / 0.5002 GB, free: 13.98 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03169/0.4566, allocations: 20.08 MB / 0.5198 GB, free: 9.117 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00297/0.4595, allocations: 1.714 MB / 0.5215 GB, free: 7.363 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001692/0.4612, allocations: 0.5092 MB / 0.522 GB, free: 6.852 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001912/0.4631, allocations: 1.183 MB / 0.5231 GB, free: 5.672 MB / 446.1 MB Notification: Performance of SimCode: time 1.312e-06/0.4631, allocations: 0 / 0.5231 GB, free: 5.672 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2564/0.7195, allocations: 52.93 MB / 0.5748 GB, free: 148 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.84/15.55, allocations: 10.69 kB / 0.5748 GB, free: 148 MB / 478.1 MB " [Timeout remaining time 644] (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 --stepSize=0.0001 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 25.224512208020315]