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.001459/0.001459, allocations: 103.7 kB / 17.63 MB, free: 5.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001294/0.001294, allocations: 208.6 kB / 18.58 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 64.64 kB / 307.1 MB, free: 0.5391 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1042, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.LCOscillator): time 0.004441/0.1087, allocations: 2.71 MB / 360.3 MB, free: 11.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001407/0.1101, allocations: 0.7049 MB / 361 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002307/0.1103, allocations: 11.94 kB / 361 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000183/0.1106, allocations: 43.56 kB / 361.1 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002392/0.1108, allocations: 91.19 kB / 361.2 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00027/0.1111, allocations: 91.81 kB / 361.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003746/0.1115, allocations: 338.5 kB / 361.6 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1117, allocations: 117.6 kB / 361.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.112, allocations: 135.5 kB / 361.8 MB, free: 9.758 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002077/0.1123, allocations: 139.4 kB / 362 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.241e-05/0.1123, allocations: 32 kB / 362 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.772e-05/0.1124, allocations: 28 kB / 362 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.226e-05/0.1124, allocations: 59.7 kB / 362.1 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001355/0.1126, allocations: 143.3 kB / 362.2 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002814/0.1129, allocations: 311.1 kB / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.1129, allocations: 0 / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1129, allocations: 0 / 362.5 MB, free: 9.059 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.1129, allocations: 0 / 362.5 MB, free: 9.059 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.0009733/0.1139, allocations: 0.5888 MB / 363.1 MB, free: 8.422 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.802e-05/0.1139, allocations: 12.03 kB / 363.1 MB, free: 8.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.189e-05/0.114, allocations: 62.67 kB / 363.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.384e-05/0.1141, allocations: 36.55 kB / 363.2 MB, free: 8.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1144, allocations: 259.8 kB / 363.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.699e-05/0.1144, allocations: 20.94 kB / 363.5 MB, free: 7.992 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.565e-05/0.1144, allocations: 24.38 kB / 363.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.1149, allocations: 283.8 kB / 363.8 MB, free: 7.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.1149, allocations: 4 kB / 363.8 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.641e-05/0.115, allocations: 8 kB / 363.8 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.115, allocations: 8 kB / 363.8 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000509/0.1155, allocations: 210.1 kB / 364 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001548/0.1171, allocations: 1.011 MB / 365 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.1175, allocations: 189.5 kB / 365.2 MB, free: 6.172 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003851/0.1179, allocations: 148.8 kB / 365.4 MB, free: 6.023 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.118, allocations: 3.984 kB / 365.4 MB, free: 6.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.118, allocations: 42.5 kB / 365.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.583e-06/0.118, allocations: 0 / 365.4 MB, free: 5.969 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.001802/0.1198, allocations: 0.5616 MB / 366 MB, free: 5.379 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.291e-05/0.1199, allocations: 51.41 kB / 366 MB, free: 5.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002364/0.1201, allocations: 229 kB / 366.2 MB, free: 5.078 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1201, allocations: 25.7 kB / 366.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.1203, allocations: 183.8 kB / 366.4 MB, free: 4.859 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.015e-05/0.1203, allocations: 63.09 kB / 366.5 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.763e-05/0.1204, allocations: 45.7 kB / 366.5 MB, free: 4.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1205, allocations: 326.8 kB / 366.9 MB, free: 4.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.1207, allocations: 79.89 kB / 366.9 MB, free: 4.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002384/0.121, allocations: 126.8 kB / 367.1 MB, free: 4.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003857/0.1214, allocations: 213.7 kB / 367.3 MB, free: 3.961 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.1214, allocations: 3.938 kB / 367.3 MB, free: 3.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008908/0.1223, allocations: 350 kB / 367.6 MB, free: 3.605 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.1223, allocations: 4 kB / 367.6 MB, free: 3.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1223, allocations: 4 kB / 367.6 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003721/0.1227, allocations: 80.86 kB / 367.7 MB, free: 3.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001925/0.1229, allocations: 51.91 kB / 367.8 MB, free: 3.465 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002925/0.1258, allocations: 2.001 MB / 369.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001942/0.126, allocations: 35.7 kB / 369.8 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1261, allocations: 8 kB / 369.8 MB, free: 1.277 MB / 302.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.000125/0.1262, allocations: 142.8 kB / 369.9 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.021e-05/0.1263, allocations: 19.72 kB / 370 MB, free: 1.109 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.819e-05/0.1263, allocations: 34.11 kB / 370 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1263, allocations: 0 / 370 MB, free: 1.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.234e-06/0.1263, allocations: 4.062 kB / 370 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1263, allocations: 48 / 370 MB, free: 1.078 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.1275, allocations: 0.6628 MB / 370.7 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.1275, allocations: 0 / 370.7 MB, free: 364 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001763/0.1277, allocations: 31.97 kB / 370.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002798/0.128, allocations: 80.8 kB / 370.8 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.128, allocations: 0 / 370.8 MB, free: 248 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1584/0.2865, allocations: 1.915 MB / 372.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.2865, allocations: 0.75 kB / 372.7 MB, free: 18.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009973/0.2875, allocations: 457.5 kB / 373.1 MB, free: 18.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.95e-05/0.2876, allocations: 100.2 kB / 373.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.887e-05/0.2876, allocations: 4.688 kB / 373.2 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002183/0.2879, allocations: 21.41 kB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.2879, allocations: 9.078 kB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.559e-05/0.2879, allocations: 10.16 kB / 373.3 MB, free: 18.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001737/0.2881, allocations: 170.8 kB / 373.4 MB, free: 18.33 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2881, allocations: 3.281 kB / 373.4 MB, free: 18.33 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004555/0.2886, allocations: 76.58 kB / 373.5 MB, free: 18.33 MB / 302.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.001113/0.2897, allocations: 0.9808 MB / 374.5 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009499/0.2907, allocations: 386.5 kB / 374.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.2907, allocations: 4.812 kB / 374.9 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002841/0.291, allocations: 206.4 kB / 375.1 MB, free: 17.44 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004393/0.2914, allocations: 44.73 kB / 375.1 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005422/0.2969, allocations: 3.084 MB / 378.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.2971, allocations: 0.7516 MB / 379 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001084/0.2972, allocations: 26.94 kB / 379 MB, free: 15.02 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.03e-05/0.2973, allocations: 72.34 kB / 379.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of SimCode: time 6.62e-07/0.2973, allocations: 1.438 kB / 379.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02681/0.3241, allocations: 5.3 MB / 384.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.3, allocations: 5.031 kB / 384.4 MB, free: 14.33 MB / 302.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