Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.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.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001153/0.001153, allocations: 115.7 kB / 17.78 MB, free: 5.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00129/0.00129, allocations: 201.2 kB / 18.73 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001434/0.001434, allocations: 59.91 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2896/0.291, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.003743/0.2948, allocations: 2.717 MB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.296, allocations: 0.705 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001248/0.2962, allocations: 4 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001492/0.2963, allocations: 51.52 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001707/0.2965, allocations: 91.23 kB / 412.4 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.2968, allocations: 87.88 kB / 412.4 MB, free: 13.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003101/0.2971, allocations: 334.5 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002108/0.2973, allocations: 113.6 kB / 412.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00024/0.2976, allocations: 135.5 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001803/0.2977, allocations: 139.3 kB / 413.2 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.594e-05/0.2978, allocations: 28 kB / 413.2 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.363e-05/0.2979, allocations: 32 kB / 413.2 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.603e-05/0.2979, allocations: 63.77 kB / 413.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.2981, allocations: 147.2 kB / 413.4 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003495/0.2984, allocations: 317.6 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.2984, allocations: 0 / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2984, allocations: 4 kB / 413.7 MB, free: 12.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2985, allocations: 0 / 413.7 MB, free: 12.57 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001021/0.2995, allocations: 0.5884 MB / 414.3 MB, free: 11.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.2995, allocations: 12.03 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.468e-05/0.2996, allocations: 62.72 kB / 414.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/0.2997, allocations: 32.75 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004234/0.3001, allocations: 275.8 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.3002, allocations: 20.94 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.355e-05/0.3002, allocations: 28.36 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000491/0.3007, allocations: 271.8 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.128e-05/0.3007, allocations: 0 / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.3008, allocations: 16 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.254e-06/0.3008, allocations: 4 kB / 415 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.3012, allocations: 210.1 kB / 415.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.3029, allocations: 1.004 MB / 416.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.3034, allocations: 186.5 kB / 416.4 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000389/0.3038, allocations: 161 kB / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.3038, allocations: 0 / 416.6 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.039e-05/0.3038, allocations: 42.47 kB / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.3038, allocations: 0 / 416.6 MB, free: 9.477 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.001606/0.3055, allocations: 0.5524 MB / 417.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.108e-05/0.3055, allocations: 59.41 kB / 417.2 MB, free: 8.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.3057, allocations: 233 kB / 417.5 MB, free: 8.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.3058, allocations: 25.7 kB / 417.5 MB, free: 8.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001164/0.3059, allocations: 184.1 kB / 417.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.826e-05/0.3059, allocations: 63.47 kB / 417.7 MB, free: 8.312 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.393e-05/0.306, allocations: 45.67 kB / 417.8 MB, free: 8.262 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.3062, allocations: 334.8 kB / 418.1 MB, free: 7.926 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001706/0.3063, allocations: 71.95 kB / 418.2 MB, free: 7.855 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.3065, allocations: 130.8 kB / 418.3 MB, free: 7.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.3069, allocations: 215.3 kB / 418.5 MB, free: 7.473 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.3069, allocations: 7.938 kB / 418.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0007617/0.3077, allocations: 350.2 kB / 418.9 MB, free: 7.113 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3077, allocations: 8 kB / 418.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3077, allocations: 0 / 418.9 MB, free: 7.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003487/0.3081, allocations: 76.86 kB / 418.9 MB, free: 7.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.3083, allocations: 51.92 kB / 419 MB, free: 6.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.3111, allocations: 2.005 MB / 421 MB, free: 4.832 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001913/0.3113, allocations: 27.78 kB / 421 MB, free: 4.805 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.398e-05/0.3113, allocations: 20.05 kB / 421 MB, free: 4.785 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (25): * Single equations (assignments): 24 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001454/0.3115, allocations: 137.7 kB / 421.2 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.59e-05/0.3115, allocations: 23.86 kB / 421.2 MB, free: 4.617 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.053e-05/0.3116, allocations: 22.19 kB / 421.2 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3116, allocations: 7.984 kB / 421.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.3116, allocations: 0 / 421.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3116, allocations: 0 / 421.2 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001083/0.3127, allocations: 0.6591 MB / 421.9 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.3127, allocations: 3.938 kB / 421.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001505/0.3129, allocations: 31.98 kB / 421.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002504/0.3131, allocations: 80.73 kB / 422 MB, free: 3.75 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.3132, allocations: 4 kB / 422 MB, free: 3.746 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002138/0.3153, allocations: 1.916 MB / 423.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3153, allocations: 0 / 423.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008662/0.3162, allocations: 464 kB / 424.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.557e-05/0.3163, allocations: 100.9 kB / 424.5 MB, free: 1.102 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.3163, allocations: 4 kB / 424.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.3165, allocations: 19.98 kB / 424.5 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.154e-05/0.3165, allocations: 11.98 kB / 424.5 MB, free: 1.066 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.3166, allocations: 12.06 kB / 424.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001512/0.3167, allocations: 168.5 kB / 424.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3167, allocations: 4 kB / 424.7 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004115/0.3172, allocations: 79.84 kB / 424.8 MB, free: 0.8125 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (c.v,l.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 (13): * Single equations (assignments): 12 * Array equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001154/0.3183, allocations: 0.9924 MB / 425.8 MB, free: 15.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008829/0.3192, allocations: 378.5 kB / 426.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.3192, allocations: 0 / 426.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002897/0.3195, allocations: 210.8 kB / 426.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003673/0.3199, allocations: 39.06 kB / 426.4 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00493/0.3248, allocations: 3.091 MB / 429.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002827/0.3251, allocations: 0.7479 MB / 430.2 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.168e-05/0.3252, allocations: 17.95 kB / 430.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001009/0.3253, allocations: 75.41 kB / 430.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3253, allocations: 0 / 430.3 MB, free: 11.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.3524, allocations: 5.415 MB / 435.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.28, allocations: 10.69 kB / 435.7 MB, free: 5.797 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv --start-time 0 --stop-time 0.01 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 1.001e-05 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_LCOscillator.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/LCOscillator/LCOscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable opAmp.out.v in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv. Warning: Get data of variable opAmp.out.v from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv failed! Error: Could not read variable opAmp.out.i in file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv. Warning: Get data of variable opAmp.out.i from file Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator_res.csv failed! " Variables in the reference:time,c.v,l.i,opAmp.out.v,opAmp.out.i Variables in the result:time,c.v,l.i