Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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.001269/0.001269, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001219/0.001219, allocations: 192 kB / 18.51 MB, free: 4.508 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.311/1.311, allocations: 205.1 MB / 224.4 MB, free: 12.32 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.001267/0.001267, allocations: 51.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07596/0.07723, allocations: 46.63 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01309/0.09036, allocations: 10.89 MB / 338.3 MB, free: 9.434 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007905/0.09831, allocations: 3.677 MB / 342 MB, free: 5.738 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001808/0.1002, allocations: 55.75 kB / 342 MB, free: 5.684 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002187/0.1024, allocations: 0.815 MB / 342.8 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003039/0.1054, allocations: 0.858 MB / 343.7 MB, free: 4 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001291/0.1068, allocations: 467.3 kB / 344.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004258/0.111, allocations: 2.939 MB / 347.1 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003107/0.1141, allocations: 2.683 MB / 349.8 MB, free: 13.85 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002031/0.1162, allocations: 1.359 MB / 351.1 MB, free: 12.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002213/0.1184, allocations: 1.755 MB / 352.9 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005081/0.1189, allocations: 376 kB / 353.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009618/0.1199, allocations: 475.8 kB / 353.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001013/0.1209, allocations: 1.071 MB / 354.8 MB, free: 8.816 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001864/0.1228, allocations: 1.676 MB / 356.5 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004161/0.127, allocations: 4.813 MB / 361.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.127, allocations: 0 / 361.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.127, allocations: 0 / 361.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.885e-05/0.1271, allocations: 0 / 361.3 MB, free: 2.305 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: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.006372/0.1335, allocations: 3.379 MB / 364.6 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.858e-05/0.1335, allocations: 15.89 kB / 364.7 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004399/0.134, allocations: 367 kB / 365 MB, free: 14.48 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007452/0.1347, allocations: 337.1 kB / 365.3 MB, free: 14.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002596/0.1373, allocations: 1.694 MB / 367 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001877/0.1375, allocations: 197.1 kB / 367.2 MB, free: 12.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003477/0.1379, allocations: 251.9 kB / 367.5 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005115/0.143, allocations: 3.283 MB / 370.8 MB, free: 8.59 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.003e-05/0.1431, allocations: 8 kB / 370.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002113/0.1433, allocations: 96 kB / 370.9 MB, free: 8.488 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001245/0.1435, allocations: 128.9 kB / 371 MB, free: 8.359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004308/0.1478, allocations: 2.744 MB / 373.7 MB, free: 5.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1439/0.2917, allocations: 10.51 MB / 384.2 MB, free: 45.92 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002845/0.2946, allocations: 1.35 MB / 385.6 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001845/0.2965, allocations: 0.7747 MB / 386.4 MB, free: 45.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003517/0.2969, allocations: 212.7 kB / 386.6 MB, free: 45.22 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.457e-05/0.2969, allocations: 47.88 kB / 386.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.388e-06/0.297, allocations: 0 / 386.6 MB, free: 45.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.02405/0.321, allocations: 7.031 MB / 393.7 MB, free: 42.67 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.3211, allocations: 63.34 kB / 393.7 MB, free: 42.61 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004375/0.3255, allocations: 1.79 MB / 395.5 MB, free: 41.95 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001961/0.3257, allocations: 47.8 kB / 395.6 MB, free: 41.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009601/0.3267, allocations: 1.281 MB / 396.8 MB, free: 40.92 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004601/0.3272, allocations: 427.6 kB / 397.3 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006586/0.3278, allocations: 293 kB / 397.5 MB, free: 40.44 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.024e-05/0.3279, allocations: 305.1 kB / 397.8 MB, free: 40.14 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001294/0.3292, allocations: 0.781 MB / 398.6 MB, free: 39.75 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001205/0.3304, allocations: 1.287 MB / 399.9 MB, free: 38.68 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00243/0.3329, allocations: 2.219 MB / 402.1 MB, free: 37.12 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.418e-05/0.3329, allocations: 6.125 kB / 402.1 MB, free: 37.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003544/0.3364, allocations: 2.478 MB / 404.6 MB, free: 35.86 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.395e-05/0.3365, allocations: 11.88 kB / 404.6 MB, free: 35.86 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.3365, allocations: 15.84 kB / 404.6 MB, free: 35.86 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005577/0.3371, allocations: 239.8 kB / 404.9 MB, free: 35.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3385, allocations: 415.3 kB / 405.3 MB, free: 35.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001865/0.3403, allocations: 3.24 MB / 408.5 MB, free: 32.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.3417, allocations: 131.8 kB / 408.6 MB, free: 32.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001229/0.3418, allocations: 80.45 kB / 408.7 MB, free: 32.4 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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.001074/0.3429, allocations: 0.8172 MB / 409.5 MB, free: 31.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003589/0.3433, allocations: 181.8 kB / 409.7 MB, free: 31.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002831/0.3461, allocations: 2.039 MB / 411.8 MB, free: 29.33 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.3461, allocations: 12 kB / 411.8 MB, free: 29.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.319e-05/0.3462, allocations: 3.188 kB / 411.8 MB, free: 29.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.367e-05/0.3462, allocations: 14.2 kB / 411.8 MB, free: 29.31 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007483/0.3537, allocations: 4.755 MB / 416.5 MB, free: 24.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.104e-06/0.3537, allocations: 0 / 416.5 MB, free: 24.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/0.3547, allocations: 263.9 kB / 416.8 MB, free: 24.22 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000486/0.3552, allocations: 207.9 kB / 417 MB, free: 24.01 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.295e-05/0.3553, allocations: 27.94 kB / 417 MB, free: 23.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/0.3572, allocations: 3.218 MB / 420.2 MB, free: 20.49 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.3572, allocations: 0 / 420.2 MB, free: 20.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003844/0.361, allocations: 3.122 MB / 423.4 MB, free: 17.31 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009265/0.362, allocations: 430.4 kB / 423.8 MB, free: 16.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004501/0.3625, allocations: 31.92 kB / 423.8 MB, free: 16.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/0.3636, allocations: 91.88 kB / 423.9 MB, free: 16.75 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/0.3638, allocations: 80.95 kB / 424 MB, free: 16.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.522e-05/0.3638, allocations: 39.86 kB / 424 MB, free: 16.64 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001794/0.3657, allocations: 1.22 MB / 425.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3657, allocations: 0 / 425.2 MB, free: 15.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0016/0.3673, allocations: 490.2 kB / 425.7 MB, free: 14.95 MB / 318.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 (120): * Single equations (assignments): 116 * 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.004246/0.3715, allocations: 3.762 MB / 429.5 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.004483/0.376, allocations: 2.979 MB / 432.5 MB, free: 8.094 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.191e-06/0.3761, allocations: 4 kB / 432.5 MB, free: 8.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001484/0.3775, allocations: 1.328 MB / 433.8 MB, free: 6.695 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002545/0.3801, allocations: 495.3 kB / 434.3 MB, free: 6.223 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03248/0.4126, allocations: 20.67 MB / 455 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002279/0.4149, allocations: 2.018 MB / 457 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.00168/0.4166, allocations: 0.4921 MB / 457.5 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001485/0.4181, allocations: 1.011 MB / 458.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4181, allocations: 0 / 458.5 MB, free: 12.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1234/0.5415, allocations: 44.97 MB / 0.4916 GB, free: 15.23 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.18, allocations: 4.188 kB / 0.4917 GB, free: 15.23 MB / 398.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches