Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.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.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_BasicExamples_ToroidalCoreAirgap",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001649/0.001648, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001998/0.001998, allocations: 198 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.527/1.527, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2894, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap): time 0.00452/0.294, allocations: 2.822 MB / 411.6 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.2955, allocations: 0.7789 MB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001455/0.2956, allocations: 4 kB / 412.4 MB, free: 13.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.2959, allocations: 63.44 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002779/0.2962, allocations: 99.17 kB / 412.5 MB, free: 13.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000276/0.2965, allocations: 115.8 kB / 412.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004081/0.2969, allocations: 386.5 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002333/0.2971, allocations: 130.9 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003166/0.2974, allocations: 163.3 kB / 413.3 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.2977, allocations: 167.2 kB / 413.5 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.309e-05/0.2977, allocations: 32 kB / 413.5 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.419e-05/0.2978, allocations: 36 kB / 413.5 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-05/0.2979, allocations: 75.69 kB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2981, allocations: 175.1 kB / 413.8 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004744/0.2986, allocations: 397.3 kB / 414.2 MB, free: 12.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.137e-06/0.2986, allocations: 7.984 kB / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.2986, allocations: 0 / 414.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.2986, allocations: 0 / 414.2 MB, free: 12.11 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: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.00127/0.2999, allocations: 0.6506 MB / 414.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2999, allocations: 8.031 kB / 414.8 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.034e-05/0.3, allocations: 70.66 kB / 414.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.95e-05/0.3001, allocations: 40.7 kB / 414.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004146/0.3005, allocations: 272.7 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.622e-05/0.3005, allocations: 29.03 kB / 415.2 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.976e-05/0.3006, allocations: 28.38 kB / 415.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006199/0.3012, allocations: 294.2 kB / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.3013, allocations: 0 / 415.5 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.008e-05/0.3013, allocations: 8 kB / 415.6 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.459e-05/0.3013, allocations: 8 kB / 415.6 MB, free: 10.61 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006163/0.3019, allocations: 254.4 kB / 415.8 MB, free: 10.37 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001824/0.3038, allocations: 1.116 MB / 416.9 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003982/0.3042, allocations: 162.1 kB / 417.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001966/0.3044, allocations: 72.81 kB / 417.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.848e-05/0.3044, allocations: 0 / 417.2 MB, free: 8.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.3045, allocations: 30.56 kB / 417.2 MB, free: 8.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.553e-06/0.3045, allocations: 4 kB / 417.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.002089/0.3066, allocations: 0.5906 MB / 417.8 MB, free: 8.266 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.631e-05/0.3066, allocations: 55.41 kB / 417.8 MB, free: 8.199 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003223/0.307, allocations: 274.5 kB / 418.1 MB, free: 7.922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.542e-05/0.307, allocations: 29.7 kB / 418.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001675/0.3072, allocations: 236 kB / 418.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.666e-05/0.3072, allocations: 75.39 kB / 418.4 MB, free: 7.578 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3074, allocations: 73.42 kB / 418.5 MB, free: 7.5 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.3075, allocations: 330.8 kB / 418.8 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00029/0.3078, allocations: 95.94 kB / 418.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003603/0.3082, allocations: 196.1 kB / 419.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006249/0.3088, allocations: 305.1 kB / 419.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3088, allocations: 0 / 419.4 MB, free: 6.496 MB / 334.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0008859/0.3097, allocations: 397.4 kB / 419.8 MB, free: 6.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3098, allocations: 8 kB / 419.8 MB, free: 6.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/0.3098, allocations: 7.984 kB / 419.8 MB, free: 6.082 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002637/0.31, allocations: 53.69 kB / 419.9 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000341/0.3104, allocations: 71.83 kB / 419.9 MB, free: 5.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00239/0.3128, allocations: 2.837 MB / 422.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002794/0.3131, allocations: 35.92 kB / 422.8 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.098e-05/0.3131, allocations: 8 kB / 422.8 MB, free: 2.789 MB / 334.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 (37): * Single equations (assignments): 35 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001854/0.3133, allocations: 156.7 kB / 423 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.727e-05/0.3134, allocations: 27.86 kB / 423 MB, free: 2.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.219e-05/0.3135, allocations: 34.11 kB / 423 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.3135, allocations: 0 / 423 MB, free: 2.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3135, allocations: 4 kB / 423 MB, free: 2.566 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.3135, allocations: 7.984 kB / 423 MB, free: 2.559 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.3139, allocations: 329.4 kB / 423.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.3139, allocations: 0 / 423.4 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002211/0.3141, allocations: 39.97 kB / 423.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001702/0.3143, allocations: 61.75 kB / 423.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3143, allocations: 4 kB / 423.5 MB, free: 2.078 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002366/0.3167, allocations: 2.83 MB / 426.3 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3167, allocations: 8.047 kB / 426.3 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007497/0.3175, allocations: 380.7 kB / 426.7 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.227e-05/0.3176, allocations: 101 kB / 426.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.3176, allocations: 4 kB / 426.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.3178, allocations: 19.97 kB / 426.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.218e-05/0.3179, allocations: 19.92 kB / 426.8 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.3179, allocations: 7.984 kB / 426.8 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002124/0.3182, allocations: 186 kB / 427 MB, free: 14.21 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3182, allocations: 0 / 427 MB, free: 14.21 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004116/0.3186, allocations: 68 kB / 427.1 MB, free: 14.15 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (18): * Single equations (assignments): 16 * 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,2,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00108/0.3197, allocations: 0.9201 MB / 428 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000998/0.3207, allocations: 481.5 kB / 428.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.3207, allocations: 0 / 428.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005226/0.3212, allocations: 349.2 kB / 428.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003799/0.3216, allocations: 24.98 kB / 428.8 MB, free: 12.31 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004974/0.3266, allocations: 2.957 MB / 431.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.3271, allocations: 0.7752 MB / 432.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001334/0.3273, allocations: 30.27 kB / 432.6 MB, free: 8.352 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.3274, allocations: 99.41 kB / 432.7 MB, free: 8.254 MB / 350.1 MB Notification: Performance of SimCode: time 2.795e-06/0.3275, allocations: 4 kB / 432.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03857/0.366, allocations: 5.613 MB / 438.3 MB, free: 2.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.89, allocations: 14.45 kB / 438.3 MB, free: 2.805 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_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_ToroidalCoreAirgap.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/ToroidalCoreAirgap/ToroidalCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches