Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_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.001318/0.001318, allocations: 110.6 kB / 17.73 MB, free: 5.34 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.001386/0.001386, allocations: 194.9 kB / 18.67 MB, free: 4.406 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.384/1.384, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001854/0.001854, allocations: 55.92 kB / 328.1 MB, free: 3.758 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09954/0.1014, allocations: 46.62 MB / 374.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2181/0.3196, allocations: 40.03 MB / 414.7 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02692/0.3465, allocations: 10.55 MB / 425.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01008/0.3566, allocations: 262.2 kB / 425.5 MB, free: 10.13 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02169/0.3784, allocations: 8.536 MB / 434.1 MB, free: 3.648 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01546/0.3939, allocations: 3.639 MB / 437.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008673/0.4026, allocations: 2.388 MB / 440.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02087/0.4235, allocations: 13.43 MB / 453.5 MB, free: 0.8672 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04457/0.4681, allocations: 25.36 MB / 478.9 MB, free: 7.359 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01383/0.482, allocations: 7.036 MB / 485.9 MB, free: 312 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01679/0.4989, allocations: 8.059 MB / 494 MB, free: 8.219 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006368/0.5053, allocations: 1.996 MB / 496 MB, free: 6.223 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008779/0.5141, allocations: 2.371 MB / 498.3 MB, free: 3.852 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00774/0.5219, allocations: 4.154 MB / 0.4907 GB, free: 15.69 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01686/0.5388, allocations: 7.832 MB / 0.4984 GB, free: 7.824 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04219/0.581, allocations: 26.49 MB / 0.5242 GB, free: 13.25 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.217e-06/0.581, allocations: 0 / 0.5242 GB, free: 13.25 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.5811, allocations: 0 / 0.5242 GB, free: 13.25 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009321/0.582, allocations: 0 / 0.5242 GB, free: 13.25 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05501/0.637, allocations: 15.9 MB / 0.5397 GB, free: 13.22 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.207e-05/0.6371, allocations: 8.031 kB / 0.5398 GB, free: 13.21 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008949/0.6461, allocations: 1.798 MB / 0.5415 GB, free: 11.4 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05381/0.6999, allocations: 9.179 MB / 0.5505 GB, free: 2.203 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3984/1.098, allocations: 7.521 MB / 0.5578 GB, free: 132 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00106/1.099, allocations: 0.944 MB / 0.5587 GB, free: 131.6 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005203/1.105, allocations: 1.246 MB / 0.56 GB, free: 131.2 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05221/1.157, allocations: 20.15 MB / 0.5796 GB, free: 123.3 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007694/1.158, allocations: 19.8 kB / 0.5797 GB, free: 123.3 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005259/1.163, allocations: 0.517 MB / 0.5802 GB, free: 122.9 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00111/1.164, allocations: 0.7361 MB / 0.5809 GB, free: 122.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04694/1.211, allocations: 18.98 MB / 0.5994 GB, free: 110.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1181/1.329, allocations: 62.82 MB / 0.6608 GB, free: 47.26 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03943/1.369, allocations: 56.98 MB / 0.7164 GB, free: 15.39 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00885/1.378, allocations: 4.094 MB / 0.7204 GB, free: 11.28 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02822/1.406, allocations: 11.38 MB / 0.7315 GB, free: 60 kB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/1.406, allocations: 69.73 kB / 0.7316 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 7.705e-06/1.406, allocations: 0 / 0.7316 GB, free: 15.98 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.3328/1.739, allocations: 18.29 MB / 0.7494 GB, free: 165.9 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/1.739, allocations: 92.88 kB / 0.7495 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009911/1.749, allocations: 5.473 MB / 0.7549 GB, free: 164.7 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.000897/1.75, allocations: 89.48 kB / 0.755 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.005423/1.755, allocations: 6.095 MB / 0.7609 GB, free: 162 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00204/1.757, allocations: 1.438 MB / 0.7623 GB, free: 161.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003103/1.761, allocations: 1.516 MB / 0.7638 GB, free: 160.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 6.446e-05/1.761, allocations: 304.5 kB / 0.7641 GB, free: 160 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005897/1.767, allocations: 3.08 MB / 0.7671 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009472/1.776, allocations: 6.753 MB / 0.7737 GB, free: 152.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01587/1.792, allocations: 10.59 MB / 0.784 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002792/1.792, allocations: 35.31 kB / 0.7841 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02206/1.814, allocations: 10.82 MB / 0.7946 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001392/1.815, allocations: 59.88 kB / 0.7947 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002259/1.815, allocations: 134.7 kB / 0.7948 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/1.817, allocations: 0.9649 MB / 0.7958 GB, free: 140 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006398/1.824, allocations: 1.818 MB / 0.7975 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009716/1.833, allocations: 10.24 MB / 0.8075 GB, free: 132.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00623/1.84, allocations: 452.4 kB / 0.808 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001133/1.841, allocations: 419.7 kB / 0.8084 GB, free: 132.6 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007487/1.848, allocations: 4.463 MB / 0.8127 GB, free: 130.4 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/1.85, allocations: 0.5708 MB / 0.8133 GB, free: 130.1 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009579/1.859, allocations: 6.52 MB / 0.8197 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.359e-05/1.859, allocations: 40 kB / 0.8197 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-05/1.859, allocations: 8 kB / 0.8197 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.312e-05/1.859, allocations: 19.62 kB / 0.8197 GB, free: 125.2 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03312/1.893, allocations: 15.96 MB / 0.8353 GB, free: 110.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.074e-05/1.893, allocations: 4 kB / 0.8353 GB, free: 110.9 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003537/1.896, allocations: 0.7532 MB / 0.836 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002443/1.899, allocations: 0.7885 MB / 0.8368 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007793/1.899, allocations: 83.97 kB / 0.8369 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01005/1.91, allocations: 9.35 MB / 0.846 GB, free: 99.51 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.594e-06/1.91, allocations: 7.938 kB / 0.846 GB, free: 99.5 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01689/1.927, allocations: 9.563 MB / 0.8554 GB, free: 89.83 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00383/1.93, allocations: 1.106 MB / 0.8565 GB, free: 88.7 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002047/1.932, allocations: 68 kB / 0.8565 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004166/1.937, allocations: 223.8 kB / 0.8567 GB, free: 88.42 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001032/1.938, allocations: 262.7 kB / 0.857 GB, free: 88.16 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000582/1.938, allocations: 116 kB / 0.8571 GB, free: 88.05 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.007261/1.946, allocations: 3.603 MB / 0.8606 GB, free: 84.47 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.51e-07/1.946, allocations: 0 / 0.8606 GB, free: 84.47 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01034/1.956, allocations: 1.98 MB / 0.8625 GB, free: 82.49 MB / 0.5138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01558/1.972, allocations: 10.28 MB / 0.8726 GB, free: 72.1 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01351/1.985, allocations: 8.076 MB / 0.8805 GB, free: 63.96 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/1.985, allocations: 4.062 kB / 0.8805 GB, free: 63.96 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005714/1.991, allocations: 3.548 MB / 0.8839 GB, free: 60.33 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/2.001, allocations: 1.306 MB / 0.8852 GB, free: 59.04 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3661/2.367, allocations: 70.57 MB / 0.9541 GB, free: 173.4 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01451/2.382, allocations: 7.598 MB / 0.9616 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009759/2.392, allocations: 2.354 MB / 0.9639 GB, free: 170.6 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009402/2.401, allocations: 4.517 MB / 0.9683 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of SimCode: time 1.342e-06/2.401, allocations: 0 / 0.9683 GB, free: 166.8 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2419/2.643, allocations: 153.2 MB / 1.118 GB, free: 25.68 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.05/25.69, allocations: 8.938 kB / 1.118 GB, free: 25.67 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches