Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.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.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001766/0.001766, allocations: 104.4 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002011/0.002012, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 59.44 kB / 307.1 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08574/0.08699, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor): time 0.00898/0.09601, allocations: 7.888 MB / 365.5 MB, free: 6.051 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005347/0.1014, allocations: 3.173 MB / 368.6 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001005/0.1024, allocations: 31.94 kB / 368.7 MB, free: 2.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003237/0.1057, allocations: 1.337 MB / 370 MB, free: 1.496 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002213/0.1079, allocations: 0.6324 MB / 370.6 MB, free: 0.8594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1751/0.283, allocations: 1.5 MB / 372.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00227/0.2853, allocations: 1.689 MB / 373.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001979/0.2873, allocations: 1.326 MB / 375.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000976/0.2883, allocations: 0.6634 MB / 375.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008979/0.2892, allocations: 0.8017 MB / 376.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002482/0.2895, allocations: 168.8 kB / 376.8 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00136/0.2908, allocations: 0.4884 MB / 377.3 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003217/0.2912, allocations: 379.6 kB / 377.6 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008765/0.2921, allocations: 0.8031 MB / 378.4 MB, free: 8.305 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004355/0.2964, allocations: 2.293 MB / 380.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.478e-06/0.2965, allocations: 0 / 380.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.2965, allocations: 0 / 380.7 MB, free: 7.504 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.993e-05/0.2966, allocations: 0 / 380.7 MB, free: 7.504 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: 371 * Number of variables: 371 Notification: Performance of Generate backend data structure: time 0.006348/0.3029, allocations: 2.19 MB / 382.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.565e-05/0.303, allocations: 10 kB / 382.9 MB, free: 6.273 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002985/0.3033, allocations: 227.7 kB / 383.2 MB, free: 6.121 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003913/0.3072, allocations: 0.6019 MB / 383.8 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001655/0.3089, allocations: 0.8652 MB / 384.6 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.309, allocations: 146 kB / 384.8 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002314/0.3093, allocations: 153.2 kB / 384.9 MB, free: 5.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002449/0.3117, allocations: 1.338 MB / 386.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.328e-05/0.3118, allocations: 6.375 kB / 386.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001293/0.3119, allocations: 63.88 kB / 386.3 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.167e-05/0.312, allocations: 34.72 kB / 386.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002497/0.3145, allocations: 1.282 MB / 387.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007024/0.3215, allocations: 4.984 MB / 392.6 MB, free: 1.082 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002673/0.3242, allocations: 1.94 MB / 394.6 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.3253, allocations: 0.5682 MB / 395.1 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001721/0.3255, allocations: 194.5 kB / 395.3 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001328/0.3268, allocations: 0.7297 MB / 396.1 MB, free: 14.69 MB / 318.1 MB Notification: Performance of pre-optimization done (n=132): time 2.966e-06/0.3269, allocations: 5.562 kB / 396.1 MB, free: 14.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=166): time 0.01427/0.3411, allocations: 5.63 MB / 401.7 MB, free: 11.56 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.089e-05/0.3412, allocations: 156.5 kB / 401.8 MB, free: 11.39 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007696/0.342, allocations: 0.6567 MB / 402.5 MB, free: 10.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.869e-05/0.3421, allocations: 61.69 kB / 402.6 MB, free: 10.73 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004045/0.3425, allocations: 0.5842 MB / 403.1 MB, free: 10.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.3429, allocations: 0.5392 MB / 403.7 MB, free: 9.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004265/0.3434, allocations: 275.5 kB / 403.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3435, allocations: 357.9 kB / 404.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001077/0.3446, allocations: 0.5037 MB / 404.8 MB, free: 8.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.3459, allocations: 0.8362 MB / 405.6 MB, free: 7.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002416/0.3483, allocations: 1.435 MB / 407.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.3483, allocations: 0 / 407.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of matching and sorting (n=215) (initialization): time 0.004338/0.3527, allocations: 2.027 MB / 409.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.3527, allocations: 22.69 kB / 409.1 MB, free: 4.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.557e-05/0.3528, allocations: 11.94 kB / 409.1 MB, free: 4 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00184/0.3546, allocations: 0.5206 MB / 409.7 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001146/0.3558, allocations: 290.3 kB / 409.9 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009906/0.3657, allocations: 9.514 MB / 419.5 MB, free: 9.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001178/0.3669, allocations: 76.03 kB / 419.5 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.367, allocations: 72.16 kB / 419.6 MB, free: 9.066 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,$PRE.fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,rootMeanSquare.mean2.y_last,$PRE.rootMeanSquare.mean2.y_last,rootMeanSquare.mean1.y_last,$PRE.rootMeanSquare.mean1.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (161): * Single equations (assignments): 157 * 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): 3 systems {(1,9,100.0%), (1,19,100.0%), (1,19,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0007126/0.3677, allocations: 369.3 kB / 420 MB, free: 8.715 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001983/0.3679, allocations: 114.6 kB / 420.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004271/0.3722, allocations: 1.903 MB / 422 MB, free: 6.703 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.32e-05/0.3722, allocations: 16 kB / 422 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3723, allocations: 12 kB / 422 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.835e-05/0.3723, allocations: 11.91 kB / 422 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006407/0.3787, allocations: 3.531 MB / 425.5 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.3787, allocations: 4.188 kB / 425.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009553/0.3797, allocations: 206.7 kB / 425.7 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/0.3815, allocations: 0.51 MB / 426.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.825e-05/0.3816, allocations: 35.98 kB / 426.3 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00933/0.3909, allocations: 9.139 MB / 435.4 MB, free: 8.738 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.391, allocations: 7.469 kB / 435.4 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005645/0.3966, allocations: 2.646 MB / 438.1 MB, free: 6.062 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/0.3973, allocations: 291.5 kB / 438.4 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001826/0.3975, allocations: 39.98 kB / 438.4 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007653/0.3982, allocations: 59.91 kB / 438.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003528/0.3986, allocations: 140.7 kB / 438.6 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.813e-05/0.3987, allocations: 55.97 kB / 438.7 MB, free: 5.473 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005706/0.3993, allocations: 447 kB / 439.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3993, allocations: 4 kB / 439.1 MB, free: 5.027 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001674/0.401, allocations: 420 kB / 439.5 MB, free: 4.617 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (coil.i,fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x,sourceQS.pin_p.reference.gamma) * Number of discrete variables: 12 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,fundamentalWavePermabilitySensor.harmonicPotential.mean1.y_last,fundamentalWavePermabilitySensor.harmonicPotential.mean2.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean1.y_last,fundamentalWavePermabilitySensor.harmonicFlux.mean2.y_last,rootMeanSquare.mean1.y_last,rootMeanSquare.mean2.y_last) * Number of discrete states: 6 (fundamentalWavePermabilitySensor.harmonicPotential.mean1.x,fundamentalWavePermabilitySensor.harmonicPotential.mean2.x,fundamentalWavePermabilitySensor.harmonicFlux.mean1.x,fundamentalWavePermabilitySensor.harmonicFlux.mean2.x,rootMeanSquare.mean1.x,rootMeanSquare.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (116): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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): 3 systems {(1,19,100.0%), (1,9,100.0%), (2,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005733/0.4067, allocations: 3.301 MB / 442.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.004874/0.4116, allocations: 2.175 MB / 445 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.4116, allocations: 4.25 kB / 445 MB, free: 15.13 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002208/0.4139, allocations: 1.404 MB / 446.4 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008733/0.4147, allocations: 135.5 kB / 446.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01829/0.4331, allocations: 11.44 MB / 458 MB, free: 1.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008038/0.4339, allocations: 1.209 MB / 459.2 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0008368/0.4347, allocations: 169.2 kB / 459.3 MB, free: 248 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000741/0.4355, allocations: 0.5469 MB / 459.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4355, allocations: 0 / 459.9 MB, free: 15.73 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06453/0.5, allocations: 28.39 MB / 488.3 MB, free: 3.57 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/12.8, allocations: 22.86 kB / 488.3 MB, free: 3.551 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FluxTubes_Examples_NonLinearInductor.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/NonLinearInductor/NonLinearInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.NonLinearInductor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches