Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.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.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001113/0.001113, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00118/0.00118, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 67.05 kB / 307.1 MB, free: 0.5234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.08331, allocations: 50.54 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.004777/0.08812, allocations: 3.502 MB / 361.1 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001685/0.08983, allocations: 0.9736 MB / 362.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002733/0.09013, allocations: 8 kB / 362.1 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002884/0.09043, allocations: 99.08 kB / 362.2 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004388/0.09089, allocations: 166.7 kB / 362.3 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.09129, allocations: 171.7 kB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006038/0.0919, allocations: 0.6347 MB / 363.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002782/0.09219, allocations: 181.8 kB / 363.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002931/0.09249, allocations: 243 kB / 363.6 MB, free: 7.992 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002905/0.09279, allocations: 274.7 kB / 363.8 MB, free: 7.723 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.09288, allocations: 52 kB / 363.9 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.801e-05/0.09298, allocations: 52 kB / 363.9 MB, free: 7.621 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.325e-05/0.09308, allocations: 127.5 kB / 364 MB, free: 7.496 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.09332, allocations: 286.5 kB / 364.3 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.09385, allocations: 0.6227 MB / 364.9 MB, free: 6.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.09387, allocations: 4 kB / 365 MB, free: 6.586 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.09387, allocations: 3.938 kB / 365 MB, free: 6.582 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.404e-05/0.09389, allocations: 0 / 365 MB, free: 6.582 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00155/0.09545, allocations: 0.8614 MB / 365.8 MB, free: 5.668 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.265e-05/0.0955, allocations: 8.031 kB / 365.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001061/0.09561, allocations: 94.64 kB / 365.9 MB, free: 5.559 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001102/0.09573, allocations: 68.12 kB / 366 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000415/0.09616, allocations: 351.7 kB / 366.3 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.0962, allocations: 37.69 kB / 366.4 MB, free: 5.074 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.09628, allocations: 52.12 kB / 366.4 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008191/0.0971, allocations: 434.5 kB / 366.8 MB, free: 4.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.09713, allocations: 4 kB / 366.8 MB, free: 4.586 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.09718, allocations: 27.97 kB / 366.9 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.09719, allocations: 12 kB / 366.9 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008363/0.09804, allocations: 389 kB / 367.3 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.1005, allocations: 1.581 MB / 368.8 MB, free: 2.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007168/0.1012, allocations: 411 kB / 369.2 MB, free: 2.051 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004232/0.1016, allocations: 184.1 kB / 369.4 MB, free: 1.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.341e-05/0.1017, allocations: 8.328 kB / 369.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.24e-05/0.1017, allocations: 34.89 kB / 369.5 MB, free: 1.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 2.024e-06/0.1017, allocations: 0 / 369.5 MB, free: 1.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.003318/0.105, allocations: 1.199 MB / 370.7 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.53e-05/0.1051, allocations: 59.97 kB / 370.7 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004714/0.1056, allocations: 401.6 kB / 371.1 MB, free: 132 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1056, allocations: 37.7 kB / 371.2 MB, free: 88 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1333/0.239, allocations: 296 kB / 371.4 MB, free: 20.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001563/0.2392, allocations: 196.1 kB / 371.6 MB, free: 20.07 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001666/0.2393, allocations: 110.7 kB / 371.7 MB, free: 20.04 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.474e-05/0.2394, allocations: 359.9 kB / 372.1 MB, free: 19.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.2399, allocations: 179.7 kB / 372.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.2404, allocations: 299.4 kB / 372.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008872/0.2413, allocations: 497.8 kB / 373 MB, free: 19.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.2413, allocations: 8.672 kB / 373.1 MB, free: 19.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001446/0.2428, allocations: 0.7344 MB / 373.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.2428, allocations: 6.469 kB / 373.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2428, allocations: 3.562 kB / 373.8 MB, free: 19.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005291/0.2433, allocations: 189.9 kB / 374 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004936/0.2439, allocations: 112.4 kB / 374.1 MB, free: 19.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003244/0.2471, allocations: 4.267 MB / 378.4 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004247/0.2475, allocations: 34.27 kB / 378.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.2476, allocations: 23.11 kB / 378.4 MB, free: 15.47 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000174/0.2478, allocations: 184 kB / 378.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.34e-05/0.2479, allocations: 48.27 kB / 378.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001068/0.248, allocations: 60.41 kB / 378.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.248, allocations: 6.062 kB / 378.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.183e-05/0.248, allocations: 6.688 kB / 378.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.384e-06/0.248, allocations: 4.469 kB / 378.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002073/0.2501, allocations: 1.313 MB / 380 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.2501, allocations: 1.281 kB / 380 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002947/0.2504, allocations: 70.12 kB / 380.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003667/0.2508, allocations: 160.9 kB / 380.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.731e-05/0.2508, allocations: 15.81 kB / 380.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002759/0.2536, allocations: 4.107 MB / 384.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2536, allocations: 1.188 kB / 384.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001103/0.2547, allocations: 0.6979 MB / 385.1 MB, free: 10.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.21e-05/0.2548, allocations: 129.9 kB / 385.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.54e-05/0.2549, allocations: 12.64 kB / 385.2 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003049/0.2552, allocations: 24.77 kB / 385.2 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.503e-05/0.2553, allocations: 47.89 kB / 385.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.368e-05/0.2553, allocations: 16.42 kB / 385.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000277/0.2556, allocations: 283 kB / 385.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2556, allocations: 0 / 385.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006652/0.2563, allocations: 149.2 kB / 385.7 MB, free: 10.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (35): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001275/0.2575, allocations: 1.258 MB / 387 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001448/0.259, allocations: 0.7991 MB / 387.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.259, allocations: 0 / 387.8 MB, free: 8.727 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.2597, allocations: 0.5239 MB / 388.3 MB, free: 8.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004555/0.2602, allocations: 45 kB / 388.4 MB, free: 8.363 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006492/0.2667, allocations: 4.781 MB / 393.1 MB, free: 5.434 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003447/0.2671, allocations: 0.8618 MB / 394 MB, free: 4.727 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002172/0.2673, allocations: 47.11 kB / 394 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000217/0.2675, allocations: 181.8 kB / 394.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of SimCode: time 4.31e-07/0.2675, allocations: 0 / 394.2 MB, free: 4.578 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03193/0.2995, allocations: 9.559 MB / 403.8 MB, free: 15.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.137/9.436, allocations: 18.17 kB / 403.8 MB, free: 15.84 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv --start-time 0 --stop-time 0.05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_QuadraticCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches