Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001111/0.001111, allocations: 121.6 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001129/0.001129, allocations: 199.9 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.272/1.272, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2217/0.2229, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource): time 0.01213/0.235, allocations: 11.92 MB / 420.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006816/0.2419, allocations: 4.045 MB / 424.7 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.2436, allocations: 75.69 kB / 424.8 MB, free: 1.445 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00211/0.2457, allocations: 0.9471 MB / 425.8 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002764/0.2485, allocations: 1.014 MB / 426.8 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001168/0.2497, allocations: 0.5578 MB / 427.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003357/0.2531, allocations: 3.41 MB / 430.7 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003227/0.2563, allocations: 3.092 MB / 433.8 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002205/0.2586, allocations: 1.593 MB / 435.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002488/0.2611, allocations: 2.043 MB / 437.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000627/0.2617, allocations: 439.9 kB / 437.9 MB, free: 4.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009479/0.2627, allocations: 0.5467 MB / 438.4 MB, free: 3.703 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.2637, allocations: 1.258 MB / 439.7 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001896/0.2656, allocations: 1.94 MB / 441.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005356/0.271, allocations: 5.71 MB / 447.4 MB, free: 10.76 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.462e-06/0.271, allocations: 8 kB / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2711, allocations: 0 / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001086/0.2712, allocations: 0 / 447.4 MB, free: 10.75 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 775 * Number of variables: 775 Notification: Performance of Generate backend data structure: time 0.007749/0.2789, allocations: 4.037 MB / 451.4 MB, free: 6.645 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.279, allocations: 8.031 kB / 451.4 MB, free: 6.637 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000555/0.2795, allocations: 429.9 kB / 451.8 MB, free: 6.207 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001119/0.2807, allocations: 434.5 kB / 452.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00409/0.2848, allocations: 2.144 MB / 454.4 MB, free: 3.586 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001729/0.285, allocations: 230 kB / 454.6 MB, free: 3.359 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005316/0.2855, allocations: 295.9 kB / 454.9 MB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00662/0.2921, allocations: 3.85 MB / 458.8 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.682e-05/0.2923, allocations: 11.95 kB / 458.8 MB, free: 15.13 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000273/0.2925, allocations: 116 kB / 458.9 MB, free: 15.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.2927, allocations: 149.7 kB / 459 MB, free: 14.87 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005242/0.298, allocations: 3.255 MB / 462.3 MB, free: 11.6 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01729/0.3153, allocations: 12.06 MB / 474.3 MB, free: 15.19 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00229/0.3176, allocations: 1.945 MB / 476.3 MB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.3194, allocations: 1.141 MB / 477.4 MB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002808/0.3196, allocations: 223.4 kB / 477.6 MB, free: 11.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.3197, allocations: 43.88 kB / 477.7 MB, free: 11.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=139): time 3.086e-06/0.3197, allocations: 0 / 477.7 MB, free: 11.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=155): time 0.01275/0.3325, allocations: 7.056 MB / 484.7 MB, free: 4.492 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.687e-05/0.3325, allocations: 72.66 kB / 484.8 MB, free: 4.41 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002741/0.3353, allocations: 2.036 MB / 486.8 MB, free: 2.336 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001478/0.3354, allocations: 49.7 kB / 486.9 MB, free: 2.281 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009817/0.3364, allocations: 1.499 MB / 488.4 MB, free: 0.7695 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004353/0.3369, allocations: 0.5616 MB / 489 MB, free: 208 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005281/0.3374, allocations: 355.4 kB / 489.3 MB, free: 15.85 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.225e-05/0.3375, allocations: 305.6 kB / 489.6 MB, free: 15.55 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001296/0.3388, allocations: 0.8745 MB / 490.5 MB, free: 14.67 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.3405, allocations: 1.454 MB / 491.9 MB, free: 12.96 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003112/0.3436, allocations: 2.506 MB / 494.4 MB, free: 10.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.3436, allocations: 8 kB / 494.4 MB, free: 10.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=246) (initialization): time 0.004679/0.3483, allocations: 3.027 MB / 497.5 MB, free: 7.137 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.71e-05/0.3483, allocations: 19.92 kB / 497.5 MB, free: 7.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.34e-05/0.3484, allocations: 19.94 kB / 497.5 MB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008354/0.3492, allocations: 383.7 kB / 497.9 MB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001644/0.3509, allocations: 471.2 kB / 498.3 MB, free: 6.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005703/0.3566, allocations: 6.705 MB / 0.4932 GB, free: 15.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001682/0.3583, allocations: 143.8 kB / 0.4934 GB, free: 14.99 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001554/0.3585, allocations: 83.98 kB / 0.4934 GB, free: 14.91 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 81 * Number of states: 0 () * Number of discrete variables: 1 (sinCosEvaluation.integrator.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (228): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {(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 {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001471/0.3599, allocations: 0.9421 MB / 0.4944 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004022/0.3603, allocations: 226.5 kB / 0.4946 GB, free: 13.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004074/0.3644, allocations: 2.598 MB / 0.4971 GB, free: 11.1 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/0.3645, allocations: 16 kB / 0.4971 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.3645, allocations: 4 kB / 0.4971 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.437e-05/0.3645, allocations: 7.969 kB / 0.4971 GB, free: 11.07 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009663/0.3742, allocations: 5.826 MB / 0.5028 GB, free: 5.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-05/0.3742, allocations: 4 kB / 0.5028 GB, free: 5.086 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/0.3754, allocations: 291.5 kB / 0.5031 GB, free: 4.801 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009502/0.3764, allocations: 403.5 kB / 0.5035 GB, free: 4.395 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001206/0.3765, allocations: 43.98 kB / 0.5035 GB, free: 4.352 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006975/0.3835, allocations: 8.253 MB / 0.5116 GB, free: 11.54 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.303e-06/0.3835, allocations: 11.94 kB / 0.5116 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005462/0.389, allocations: 3.847 MB / 0.5154 GB, free: 7.578 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001186/0.3902, allocations: 499.4 kB / 0.5158 GB, free: 7.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004312/0.3906, allocations: 32 kB / 0.5159 GB, free: 7.039 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001236/0.3919, allocations: 95.81 kB / 0.516 GB, free: 6.945 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000212/0.3921, allocations: 113.1 kB / 0.5161 GB, free: 6.836 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.97e-05/0.3922, allocations: 52.11 kB / 0.5161 GB, free: 6.785 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002372/0.3946, allocations: 1.386 MB / 0.5175 GB, free: 5.379 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.3946, allocations: 3.938 kB / 0.5175 GB, free: 5.375 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002056/0.3967, allocations: 0.5624 MB / 0.518 GB, free: 4.812 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x,sinCosEvaluation.der1.u) * 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 (146): * Single equations (assignments): 142 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%), (2,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.005961/0.4026, allocations: 4.494 MB / 0.5224 GB, free: 212 kB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003809/0.4065, allocations: 2.645 MB / 0.525 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.18e-06/0.4065, allocations: 4.125 kB / 0.525 GB, free: 13.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.4085, allocations: 1.576 MB / 0.5265 GB, free: 11.87 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002881/0.4114, allocations: 0.554 MB / 0.5271 GB, free: 11.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2152/0.6267, allocations: 22.16 MB / 0.5487 GB, free: 120.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001542/0.6282, allocations: 2.252 MB / 0.5509 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001384/0.6296, allocations: 0.533 MB / 0.5514 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001178/0.6308, allocations: 1.194 MB / 0.5526 GB, free: 118.3 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/0.6308, allocations: 0 / 0.5526 GB, free: 118.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07906/0.7099, allocations: 54.48 MB / 0.6058 GB, free: 66.17 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.19/13.9, allocations: 14.77 kB / 0.6058 GB, free: 66.16 MB / 462.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_VoltageSource.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_VoltageSource/SMPM_VoltageSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches