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.001503/0.001504, allocations: 113.2 kB / 17.73 MB, free: 5.305 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.00173/0.00173, allocations: 188.2 kB / 18.66 MB, free: 4.375 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.289/1.289, allocations: 205.1 MB / 224.5 MB, free: 12.18 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.001276/0.001276, allocations: 51.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07186/0.07315, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.169/0.2422, allocations: 10.88 MB / 385.5 MB, free: 7.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006136/0.2483, allocations: 3.674 MB / 389.2 MB, free: 5.195 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.2502, allocations: 60.34 kB / 389.3 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.2522, allocations: 0.8177 MB / 390.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002735/0.255, allocations: 0.8609 MB / 390.9 MB, free: 4.184 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001163/0.2562, allocations: 466.9 kB / 391.4 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003436/0.2596, allocations: 2.946 MB / 394.4 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.2625, allocations: 2.684 MB / 397 MB, free: 1.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002111/0.2646, allocations: 1.37 MB / 398.4 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002575/0.2672, allocations: 1.756 MB / 400.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000701/0.268, allocations: 374 kB / 400.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001296/0.2693, allocations: 472 kB / 401 MB, free: 15.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001318/0.2706, allocations: 1.067 MB / 402.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002617/0.2732, allocations: 1.674 MB / 403.7 MB, free: 14.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005832/0.2791, allocations: 4.878 MB / 408.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.063e-06/0.2791, allocations: 5.375 kB / 408.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2791, allocations: 0 / 408.6 MB, free: 10.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001347/0.2793, allocations: 1.125 kB / 408.6 MB, free: 10.93 MB / 334.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.00777/0.287, allocations: 3.391 MB / 412 MB, free: 8.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.2871, allocations: 13.45 kB / 412 MB, free: 8.586 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005234/0.2876, allocations: 364.5 kB / 412.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008721/0.2885, allocations: 339.5 kB / 412.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00331/0.2918, allocations: 1.708 MB / 414.4 MB, free: 6.926 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001573/0.292, allocations: 186.9 kB / 414.6 MB, free: 6.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004317/0.2924, allocations: 251.5 kB / 414.8 MB, free: 6.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005459/0.2979, allocations: 3.286 MB / 418.1 MB, free: 4.312 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.542e-05/0.298, allocations: 3.906 kB / 418.1 MB, free: 4.309 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002233/0.2982, allocations: 104 kB / 418.2 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001212/0.2984, allocations: 122.1 kB / 418.4 MB, free: 4.086 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004563/0.3029, allocations: 2.748 MB / 421.1 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/0.3198, allocations: 10.4 MB / 431.5 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.3218, allocations: 1.358 MB / 432.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001207/0.323, allocations: 0.7501 MB / 433.6 MB, free: 4.383 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.3233, allocations: 204.3 kB / 433.8 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.3234, allocations: 47.55 kB / 433.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.516e-06/0.3234, allocations: 0 / 433.9 MB, free: 4.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=122): time 0.01605/0.3394, allocations: 7.038 MB / 440.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.3395, allocations: 64.41 kB / 441 MB, free: 12.87 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002839/0.3424, allocations: 1.778 MB / 442.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002017/0.3426, allocations: 45.7 kB / 442.8 MB, free: 11.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009103/0.3435, allocations: 1.287 MB / 444.1 MB, free: 9.734 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004252/0.344, allocations: 429.9 kB / 444.5 MB, free: 9.309 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004725/0.3444, allocations: 295.2 kB / 444.8 MB, free: 9.012 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.3446, allocations: 309.1 kB / 445.1 MB, free: 8.707 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.3458, allocations: 0.773 MB / 445.8 MB, free: 7.934 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0015/0.3473, allocations: 1.293 MB / 447.1 MB, free: 6.41 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002745/0.3501, allocations: 2.215 MB / 449.4 MB, free: 3.961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.027e-05/0.3501, allocations: 8 kB / 449.4 MB, free: 3.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004017/0.3541, allocations: 2.471 MB / 451.8 MB, free: 1.461 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.507e-05/0.3542, allocations: 16 kB / 451.8 MB, free: 1.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.195e-05/0.3542, allocations: 20 kB / 451.9 MB, free: 1.426 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006425/0.3549, allocations: 239.2 kB / 452.1 MB, free: 1.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001526/0.3564, allocations: 415.3 kB / 452.5 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002892/0.3593, allocations: 3.242 MB / 455.7 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001737/0.3611, allocations: 127.7 kB / 455.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000185/0.3613, allocations: 71.98 kB / 455.9 MB, free: 13.05 MB / 382.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.001561/0.3629, allocations: 0.8173 MB / 456.8 MB, free: 12.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/0.3633, allocations: 185.8 kB / 456.9 MB, free: 12.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00335/0.3667, allocations: 2.039 MB / 459 MB, free: 9.977 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-05/0.3667, allocations: 12 kB / 459 MB, free: 9.965 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/0.3667, allocations: 4 kB / 459 MB, free: 9.961 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.365e-05/0.3667, allocations: 11.91 kB / 459 MB, free: 9.949 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008735/0.3755, allocations: 4.729 MB / 463.7 MB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.3755, allocations: 4 kB / 463.7 MB, free: 5.109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/0.3767, allocations: 271.9 kB / 464 MB, free: 4.844 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005571/0.3773, allocations: 199.3 kB / 464.2 MB, free: 4.637 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001084/0.3774, allocations: 27.94 kB / 464.2 MB, free: 4.609 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002567/0.38, allocations: 3.222 MB / 467.4 MB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.38, allocations: 0 / 467.4 MB, free: 1.102 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004668/0.3847, allocations: 3.12 MB / 470.6 MB, free: 13.93 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/0.3859, allocations: 426.7 kB / 471 MB, free: 13.5 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004943/0.3864, allocations: 31.98 kB / 471 MB, free: 13.46 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.3876, allocations: 91.88 kB / 471.1 MB, free: 13.38 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001918/0.3879, allocations: 80.83 kB / 471.2 MB, free: 13.3 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.748e-05/0.3879, allocations: 35.98 kB / 471.2 MB, free: 13.26 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002213/0.3902, allocations: 1.216 MB / 472.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3902, allocations: 4 kB / 472.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002042/0.3922, allocations: 488 kB / 472.9 MB, free: 11.57 MB / 398.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.005058/0.3973, allocations: 3.767 MB / 476.7 MB, free: 7.734 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003566/0.4009, allocations: 2.35 MB / 479 MB, free: 5.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4009, allocations: 4.938 kB / 479 MB, free: 5.312 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00185/0.4028, allocations: 1.338 MB / 480.4 MB, free: 3.906 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002745/0.4055, allocations: 493.5 kB / 480.9 MB, free: 3.426 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03249/0.4381, allocations: 18.67 MB / 499.5 MB, free: 0 / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002215/0.4403, allocations: 2.006 MB / 0.4898 GB, free: 13.96 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001554/0.4419, allocations: 0.496 MB / 0.4903 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001491/0.4434, allocations: 1.011 MB / 0.4913 GB, free: 12.45 MB / 430.1 MB Notification: Performance of SimCode: time 7.42e-07/0.4434, allocations: 0 / 0.4913 GB, free: 12.45 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08762/0.5311, allocations: 45.95 MB / 0.5361 GB, free: 14.36 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.46/13, allocations: 448 / 0.5361 GB, free: 14.36 MB / 478.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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 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.csv","/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