Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.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.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.TestSensors,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001131/0.001132, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001323/0.001323, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 60.34 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09731/0.09854, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Polyphase.Examples.TestSensors): time 0.007362/0.1059, allocations: 6.023 MB / 363.6 MB, free: 7.965 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003306/0.1093, allocations: 1.69 MB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009809/0.1103, allocations: 47.88 kB / 365.3 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008834/0.1112, allocations: 309.4 kB / 365.6 MB, free: 5.918 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001417/0.1126, allocations: 365.4 kB / 366 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008375/0.1135, allocations: 359.6 kB / 366.4 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001953/0.1154, allocations: 2.005 MB / 368.4 MB, free: 3.191 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00254/0.118, allocations: 2.731 MB / 371.1 MB, free: 408 kB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.165/0.283, allocations: 1.043 MB / 372.1 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001857/0.2849, allocations: 1.201 MB / 373.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005331/0.2854, allocations: 312.9 kB / 373.6 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009488/0.2864, allocations: 447.3 kB / 374.1 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00057/0.287, allocations: 0.7299 MB / 374.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001165/0.2881, allocations: 1.263 MB / 376.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003357/0.2915, allocations: 3.757 MB / 379.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2915, allocations: 0.8438 kB / 379.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2915, allocations: 1.312 kB / 379.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.055e-05/0.2916, allocations: 0 / 379.8 MB, free: 10.22 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: 578 * Number of variables: 578 Notification: Performance of Generate backend data structure: time 0.004697/0.2963, allocations: 2.478 MB / 382.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.2964, allocations: 12.88 kB / 382.3 MB, free: 8.785 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000344/0.2967, allocations: 332.4 kB / 382.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008155/0.2976, allocations: 264 kB / 382.9 MB, free: 8.477 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00181/0.2994, allocations: 1.277 MB / 384.2 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.813e-05/0.2995, allocations: 166.8 kB / 384.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002881/0.2998, allocations: 218.4 kB / 384.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004533/0.3043, allocations: 2.546 MB / 387.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.377e-05/0.3044, allocations: 0 / 387.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002264/0.3046, allocations: 94.78 kB / 387.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/0.3048, allocations: 56.06 kB / 387.2 MB, free: 6.453 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003862/0.3086, allocations: 2.142 MB / 389.4 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01054/0.3192, allocations: 7.604 MB / 397 MB, free: 144 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3203, allocations: 1.262 MB / 398.3 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009079/0.3212, allocations: 0.6152 MB / 398.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.73e-05/0.3213, allocations: 6.562 kB / 398.9 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.3213, allocations: 46.69 kB / 398.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=63): time 2.614e-06/0.3213, allocations: 0 / 398.9 MB, free: 14.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.003957/0.3253, allocations: 2.421 MB / 401.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.025e-05/0.3253, allocations: 58.72 kB / 401.4 MB, free: 13.2 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009478/0.3263, allocations: 0.8036 MB / 402.2 MB, free: 12.75 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.805e-05/0.3264, allocations: 37.02 kB / 402.2 MB, free: 12.71 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005038/0.3269, allocations: 0.9228 MB / 403.2 MB, free: 11.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.327, allocations: 228.9 kB / 403.4 MB, free: 11.7 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.3272, allocations: 148.4 kB / 403.5 MB, free: 11.61 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.3275, allocations: 389.6 kB / 403.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005579/0.328, allocations: 366.8 kB / 404.3 MB, free: 10.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006838/0.3287, allocations: 0.5805 MB / 404.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001274/0.33, allocations: 0.9834 MB / 405.8 MB, free: 9.195 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.33, allocations: 7.938 kB / 405.8 MB, free: 9.188 MB / 318.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.001745/0.3318, allocations: 1.148 MB / 407 MB, free: 8.07 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.255e-05/0.3318, allocations: 16.03 kB / 407 MB, free: 8.055 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.3318, allocations: 4 kB / 407 MB, free: 8.051 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003035/0.3321, allocations: 115.4 kB / 407.1 MB, free: 7.938 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006696/0.3328, allocations: 166.4 kB / 407.3 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002183/0.335, allocations: 2.328 MB / 409.6 MB, free: 5.34 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000559/0.3356, allocations: 39.97 kB / 409.6 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.223e-05/0.3356, allocations: 32 kB / 409.7 MB, free: 5.27 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (89): * Single equations (assignments): 86 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001295/0.3369, allocations: 0.6613 MB / 410.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001779/0.3371, allocations: 86.91 kB / 410.4 MB, free: 4.523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001852/0.3373, allocations: 103.6 kB / 410.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.639e-05/0.3374, allocations: 8 kB / 410.5 MB, free: 4.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.619e-05/0.3374, allocations: 4 kB / 410.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.3374, allocations: 3.984 kB / 410.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004307/0.3417, allocations: 2.661 MB / 413.2 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.3417, allocations: 4.062 kB / 413.2 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004505/0.3422, allocations: 111 kB / 413.3 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002172/0.3424, allocations: 100.8 kB / 413.4 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.3425, allocations: 19.12 kB / 413.4 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002069/0.3445, allocations: 2.257 MB / 415.7 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.3446, allocations: 11.45 kB / 415.7 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002009/0.3466, allocations: 1.411 MB / 417.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003514/0.3469, allocations: 228 kB / 417.3 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.735e-05/0.3471, allocations: 12 kB / 417.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004202/0.3475, allocations: 47.09 kB / 417.4 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.3476, allocations: 52.56 kB / 417.4 MB, free: 13.28 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.451e-05/0.3477, allocations: 19.98 kB / 417.5 MB, free: 13.26 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007234/0.3484, allocations: 0.5576 MB / 418 MB, free: 12.71 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3484, allocations: 3.938 kB / 418 MB, free: 12.71 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3495, allocations: 308 kB / 418.3 MB, free: 12.41 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (inductor.inductor[2].i,inductor.inductor[3].i) * 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 (55): * Single equations (assignments): 52 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002298/0.3518, allocations: 1.993 MB / 420.3 MB, free: 10.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001966/0.3538, allocations: 1.138 MB / 421.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3538, allocations: 3.938 kB / 421.5 MB, free: 9.262 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008579/0.3547, allocations: 0.5571 MB / 422 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/0.3558, allocations: 220.9 kB / 422.2 MB, free: 8.488 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/0.3712, allocations: 10.55 MB / 432.8 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001534/0.3728, allocations: 1.724 MB / 434.5 MB, free: 11.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006046/0.3734, allocations: 203.1 kB / 434.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008098/0.3742, allocations: 0.6438 MB / 435.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3742, allocations: 0 / 435.4 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0736/0.4478, allocations: 23.6 MB / 459 MB, free: 3.676 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.284/9.732, allocations: 11.44 kB / 459 MB, free: 3.668 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Electrical_Polyphase_Examples_TestSensors.fmu > Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Polyphase/Examples/TestSensors/TestSensors.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Polyphase.Examples.TestSensors.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches