Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001475/0.001475, allocations: 96.02 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002037/0.002037, allocations: 200.8 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.502/1.502, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002457, allocations: 8 kB / 306.7 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1156/0.1158, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.004849/0.1207, allocations: 3.622 MB / 361.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002645/0.1234, allocations: 1.224 MB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002992/0.1237, allocations: 11.94 kB / 363.1 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003439/0.1241, allocations: 115.2 kB / 363.2 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004411/0.1245, allocations: 231.3 kB / 363.4 MB, free: 8.531 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004327/0.125, allocations: 147.7 kB / 363.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006829/0.1257, allocations: 0.5072 MB / 364.1 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004164/0.1261, allocations: 207.9 kB / 364.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003947/0.1265, allocations: 235.1 kB / 364.5 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003741/0.1269, allocations: 274.7 kB / 364.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.674e-05/0.127, allocations: 39.98 kB / 364.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001148/0.1271, allocations: 39.94 kB / 364.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.1272, allocations: 107.6 kB / 364.9 MB, free: 6.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.1274, allocations: 141.3 kB / 365.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005753/0.1279, allocations: 0.5377 MB / 365.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.128, allocations: 0 / 365.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.128, allocations: 0 / 365.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.128, allocations: 0 / 365.6 MB, free: 6.305 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.001637/0.1296, allocations: 0.8649 MB / 366.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.1297, allocations: 12.03 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001217/0.1298, allocations: 94.52 kB / 366.6 MB, free: 5.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003128/0.1301, allocations: 103.1 kB / 366.7 MB, free: 5.172 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005431/0.1307, allocations: 392.8 kB / 367.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.781e-05/0.1307, allocations: 41.25 kB / 367.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.991e-05/0.1308, allocations: 52 kB / 367.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009819/0.1318, allocations: 0.5457 MB / 367.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/0.1318, allocations: 0 / 367.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.564e-05/0.1319, allocations: 28 kB / 367.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.501e-05/0.1319, allocations: 12 kB / 367.7 MB, free: 4.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008799/0.1328, allocations: 433 kB / 368.2 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.1359, allocations: 1.859 MB / 370 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008174/0.1367, allocations: 0.5414 MB / 370.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.536e-05/0.1368, allocations: 4.328 kB / 370.6 MB, free: 1.102 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.1373, allocations: 298.2 kB / 370.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of pre-optimization done (n=41): time 1.614e-06/0.1373, allocations: 0 / 370.9 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of matching and sorting (n=41): time 0.265/0.4023, allocations: 1.173 MB / 372 MB, free: 19.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001207/0.4024, allocations: 239.3 kB / 372.3 MB, free: 19.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008052/0.4033, allocations: 437.5 kB / 372.7 MB, free: 19.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.041e-05/0.4033, allocations: 41.39 kB / 372.7 MB, free: 19.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002687/0.4036, allocations: 307 kB / 373 MB, free: 18.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.4037, allocations: 135.8 kB / 373.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.4038, allocations: 8.125 kB / 373.2 MB, free: 18.9 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.4039, allocations: 355.8 kB / 373.5 MB, free: 18.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004111/0.4043, allocations: 152.6 kB / 373.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005489/0.4049, allocations: 316 kB / 374 MB, free: 18.4 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.4054, allocations: 194.4 kB / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.4054, allocations: 1.062 kB / 374.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002145/0.4075, allocations: 0.7466 MB / 374.9 MB, free: 18.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.4076, allocations: 10.56 kB / 374.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.215e-05/0.4076, allocations: 5.531 kB / 374.9 MB, free: 18.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000639/0.4082, allocations: 165 kB / 375.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.4086, allocations: 83.38 kB / 375.2 MB, free: 18.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004368/0.413, allocations: 2.565 MB / 377.7 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005017/0.4135, allocations: 87.84 kB / 377.8 MB, free: 16.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.569e-05/0.4136, allocations: 19.83 kB / 377.9 MB, free: 16.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.rootMeanSquare.mean.y_last,rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002443/0.4138, allocations: 187.5 kB / 378 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.4139, allocations: 52.72 kB / 378.1 MB, free: 16.43 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.546e-05/0.414, allocations: 54.91 kB / 378.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.414, allocations: 5.188 kB / 378.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.583e-06/0.414, allocations: 0.875 kB / 378.1 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.298e-06/0.4141, allocations: 1.922 kB / 378.2 MB, free: 16.39 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002293/0.4163, allocations: 1.229 MB / 379.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.4164, allocations: 0 / 379.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002238/0.4166, allocations: 55.55 kB / 379.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004955/0.4171, allocations: 163.2 kB / 379.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.758e-05/0.4171, allocations: 13.34 kB / 379.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00377/0.4209, allocations: 2.531 MB / 382.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.4209, allocations: 0.5156 kB / 382.1 MB, free: 13.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.4228, allocations: 0.9012 MB / 383 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001277/0.423, allocations: 133.7 kB / 383.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.465e-05/0.423, allocations: 7.219 kB / 383.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000365/0.4234, allocations: 52.88 kB / 383.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/0.4235, allocations: 30.86 kB / 383.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.4236, allocations: 18.56 kB / 383.3 MB, free: 13.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003427/0.4239, allocations: 296.7 kB / 383.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4239, allocations: 0 / 383.6 MB, free: 13.26 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007123/0.4246, allocations: 174 kB / 383.7 MB, free: 13.22 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.002177/0.4268, allocations: 1.457 MB / 385.2 MB, free: 12.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4284, allocations: 0.6441 MB / 385.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4284, allocations: 0 / 385.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000983/0.4294, allocations: 462.3 kB / 386.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004671/0.4299, allocations: 77.66 kB / 386.4 MB, free: 11.78 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.4327, allocations: 3.752 MB / 390.1 MB, free: 8.461 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.4332, allocations: 0.8754 MB / 391 MB, free: 7.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002306/0.4334, allocations: 50.5 kB / 391 MB, free: 7.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002158/0.4336, allocations: 184.6 kB / 391.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4336, allocations: 1.562 kB / 391.2 MB, free: 7.594 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.4599, allocations: 10.24 MB / 401.5 MB, free: 2.98 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/0.4602, allocations: 226.1 kB / 401.7 MB, free: 2.742 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.01/2.47, allocations: 0 / 401.7 MB, free: 2.742 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_OpAmps_DifferentialAmplifier.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat does not exist to compare? outputFormat=mat